diff --git a/src/Client.php b/src/Client.php index 1f8f092c..bd63db89 100644 --- a/src/Client.php +++ b/src/Client.php @@ -16,13 +16,13 @@ class Client extends \Docker\API\Runtime\Client\Client * * @param array $queryParameters { * - * @var bool $all Return all containers. By default, only running containers are shown. - * @var int $limit return this number of most recently created containers, including - * non-running ones - * @var bool $size return the size of container as fields `SizeRw` and `SizeRootFs` - * @var string $filters Filters to process on the container list, encoded as JSON (a - * `map[string][]string`). For example, `{"status": ["paused"]}` will - * only return paused containers. + * @var bool $all Return all containers. By default, only running containers are shown. + * @var int $limit return this number of most recently created containers, including + * non-running ones + * @var bool $size return the size of container as fields `SizeRw` and `SizeRootFs` + * @var string $filters Filters to process on the container list, encoded as JSON (a + * `map[string][]string`). For example, `{"status": ["paused"]}` will + * only return paused containers. * * Available filters: * @@ -60,8 +60,8 @@ public function containerList(array $queryParameters = [], string $fetch = self: * @param \Docker\API\Model\ContainersCreatePostBody|null $requestBody * @param array $queryParameters { * - * @var string $name Assign the specified name to the container. Must match - * `/?[a-zA-Z0-9][a-zA-Z0-9_.-]+`. + * @var string $name Assign the specified name to the container. Must match + * `/?[a-zA-Z0-9][a-zA-Z0-9_.-]+`. * * } * @@ -74,7 +74,7 @@ public function containerList(array $queryParameters = [], string $fetch = self: * * @return \Docker\API\Model\ContainersCreatePostResponse201|\Psr\Http\Message\ResponseInterface|null */ - public function containerCreate(?Model\ContainersCreatePostBody $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function containerCreate(Model\ContainersCreatePostBody $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerCreate($requestBody, $queryParameters), $fetch); } @@ -85,8 +85,8 @@ public function containerCreate(?Model\ContainersCreatePostBody $requestBody = n * @param string $id ID or name of the container * @param array $queryParameters { * - * @var bool $size Return the size of container as fields `SizeRw` and `SizeRootFs` - * } + * @var bool $size Return the size of container as fields `SizeRw` and `SizeRootFs` + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -107,8 +107,8 @@ public function containerInspect(string $id, array $queryParameters = [], string * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $ps_args The arguments to pass to `ps`. For example, `aux` - * } + * @var string $ps_args The arguments to pass to `ps`. For example, `aux` + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/plain @@ -132,14 +132,14 @@ public function containerTop(string $id, array $queryParameters = [], string $fe * @param string $id ID or name of the container * @param array $queryParameters { * - * @var bool $follow keep connection after returning logs - * @var bool $stdout Return logs from `stdout` - * @var bool $stderr Return logs from `stderr` - * @var int $since Only return logs since this time, as a UNIX timestamp - * @var int $until Only return logs before this time, as a UNIX timestamp - * @var bool $timestamps Add timestamps to every log line - * @var string $tail Only return this number of log lines from the end of the logs. - * Specify as an integer or `all` to output all log lines. + * @var bool $follow keep connection after returning logs + * @var bool $stdout Return logs from `stdout` + * @var bool $stderr Return logs from `stderr` + * @var int $since Only return logs since this time, as a UNIX timestamp + * @var int $until Only return logs before this time, as a UNIX timestamp + * @var bool $timestamps Add timestamps to every log line + * @var string $tail Only return this number of log lines from the end of the logs. + * Specify as an integer or `all` to output all log lines. * * } * @@ -224,10 +224,10 @@ public function containerExport(string $id, string $fetch = self::FETCH_OBJECT, * @param string $id ID or name of the container * @param array $queryParameters { * - * @var bool $stream Stream the output. If false, the stats will be output once and then - * it will disconnect. - * @var bool $one-shot Only get a single stat instead of waiting for 2 cycles. Must be used - * with `stream=false`. + * @var bool $stream Stream the output. If false, the stats will be output once and then + * it will disconnect. + * @var bool $one-shot Only get a single stat instead of waiting for 2 cycles. Must be used + * with `stream=false`. * * } * @@ -249,9 +249,9 @@ public function containerStats(string $id, array $queryParameters = [], string $ * @param string $id ID or name of the container * @param array $queryParameters { * - * @var int $h Height of the TTY session in characters - * @var int $w Width of the TTY session in characters - * } + * @var int $h Height of the TTY session in characters + * @var int $w Width of the TTY session in characters + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header text/plain|application/json @@ -269,9 +269,9 @@ public function containerResize(string $id, array $queryParameters = [], string * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $detachKeys Override the key sequence for detaching a container. Format is a - * single character `[a-Z]` or `ctrl-` where `` is one - * of: `a-z`, `@`, `^`, `[`, `,` or `_`. + * @var string $detachKeys Override the key sequence for detaching a container. Format is a + * single character `[a-Z]` or `ctrl-` where `` is one + * of: `a-z`, `@`, `^`, `[`, `,` or `_`. * * } * @@ -292,8 +292,8 @@ public function containerStart(string $id, array $queryParameters = [], string $ * @param string $id ID or name of the container * @param array $queryParameters { * - * @var int $t Number of seconds to wait before killing the container - * } + * @var int $t Number of seconds to wait before killing the container + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/plain @@ -312,8 +312,8 @@ public function containerStop(string $id, array $queryParameters = [], string $f * @param string $id ID or name of the container * @param array $queryParameters { * - * @var int $t Number of seconds to wait before killing the container - * } + * @var int $t Number of seconds to wait before killing the container + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/plain @@ -335,8 +335,8 @@ public function containerRestart(string $id, array $queryParameters = [], string * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $signal Signal to send to the container as an integer or string (e.g. `SIGINT`) - * } + * @var string $signal Signal to send to the container as an integer or string (e.g. `SIGINT`) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/plain @@ -365,7 +365,7 @@ public function containerKill(string $id, array $queryParameters = [], string $f * * @return \Docker\API\Model\ContainersIdUpdatePostResponse200|\Psr\Http\Message\ResponseInterface|null */ - public function containerUpdate(string $id, ?Model\ContainersIdUpdatePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function containerUpdate(string $id, Model\ContainersIdUpdatePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerUpdate($id, $requestBody), $fetch); } @@ -374,8 +374,8 @@ public function containerUpdate(string $id, ?Model\ContainersIdUpdatePostBody $r * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $name New name for the container - * } + * @var string $name New name for the container + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/plain @@ -528,10 +528,10 @@ public function containerUnpause(string $id, string $fetch = self::FETCH_OBJECT, * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $detachKeys Override the key sequence for detaching a container.Format is a single - * character `[a-Z]` or `ctrl-` where `` is one of: `a-z`, - * `@`, `^`, `[`, `,` or `_`. - * @var bool $logs Replay previous logs from the container. + * @var string $detachKeys Override the key sequence for detaching a container.Format is a single + * character `[a-Z]` or `ctrl-` where `` is one of: `a-z`, + * `@`, `^`, `[`, `,` or `_`. + * @var bool $logs Replay previous logs from the container. * * This is useful for attaching to a container that has started and you * want to output everything since the container started. @@ -539,11 +539,11 @@ public function containerUnpause(string $id, string $fetch = self::FETCH_OBJECT, * If `stream` is also enabled, once all the previous output has been * returned, it will seamlessly transition into streaming current * output. - * @var bool $stream stream attached streams from the time the request was made onwards - * @var bool $stdin Attach to `stdin` - * @var bool $stdout Attach to `stdout` - * @var bool $stderr Attach to `stderr` - * } + * @var bool $stream stream attached streams from the time the request was made onwards + * @var bool $stdin Attach to `stdin` + * @var bool $stdout Attach to `stdout` + * @var bool $stderr Attach to `stderr` + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/vnd.docker.raw-stream|application/json @@ -561,15 +561,15 @@ public function containerAttach(string $id, array $queryParameters = [], string * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $detachKeys Override the key sequence for detaching a container.Format is a single - * character `[a-Z]` or `ctrl-` where `` is one of: `a-z`, - * `@`, `^`, `[`, `,`, or `_`. - * @var bool $logs Return logs - * @var bool $stream Return stream - * @var bool $stdin Attach to `stdin` - * @var bool $stdout Attach to `stdout` - * @var bool $stderr Attach to `stderr` - * } + * @var string $detachKeys Override the key sequence for detaching a container.Format is a single + * character `[a-Z]` or `ctrl-` where `` is one of: `a-z`, + * `@`, `^`, `[`, `,`, or `_`. + * @var bool $logs Return logs + * @var bool $stream Return stream + * @var bool $stdin Attach to `stdin` + * @var bool $stdout Attach to `stdout` + * @var bool $stderr Attach to `stderr` + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/plain @@ -591,8 +591,8 @@ public function containerAttachWebsocket(string $id, array $queryParameters = [] * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $condition Wait until a container state reaches the given condition, either - * 'not-running' (default), 'next-exit', or 'removed'. + * @var string $condition Wait until a container state reaches the given condition, either + * 'not-running' (default), 'next-exit', or 'removed'. * * } * @@ -612,10 +612,10 @@ public function containerWait(string $id, array $queryParameters = [], string $f * @param string $id ID or name of the container * @param array $queryParameters { * - * @var bool $v remove anonymous volumes associated with the container - * @var bool $force if the container is running, kill it before removing it - * @var bool $link Remove the specified link associated with the container. - * } + * @var bool $v remove anonymous volumes associated with the container + * @var bool $force if the container is running, kill it before removing it + * @var bool $link Remove the specified link associated with the container. + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/plain @@ -638,8 +638,8 @@ public function containerDelete(string $id, array $queryParameters = [], string * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $path Resource in the container’s filesystem to archive. - * } + * @var string $path Resource in the container’s filesystem to archive. + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/x-tar|application/json @@ -661,8 +661,8 @@ public function containerArchive(string $id, array $queryParameters = [], string * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $path Resource in the container’s filesystem to archive. - * } + * @var string $path Resource in the container’s filesystem to archive. + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/plain @@ -685,12 +685,12 @@ public function containerArchiveInfo(string $id, array $queryParameters = [], st * @param string|resource|\Psr\Http\Message\StreamInterface|null $requestBody * @param array $queryParameters { * - * @var string $path path to a directory in the container to extract the archive’s contents into - * @var string $noOverwriteDirNonDir if `1`, `true`, or `True` then it will be an error if unpacking the - * given content would cause an existing directory to be replaced with - * a non-directory and vice versa - * @var string $copyUIDGID If `1`, `true`, then it will copy UID/GID maps to the dest file or - * dir + * @var string $path path to a directory in the container to extract the archive’s contents into + * @var string $noOverwriteDirNonDir if `1`, `true`, or `True` then it will be an error if unpacking the + * given content would cause an existing directory to be replaced with + * a non-directory and vice versa + * @var string $copyUIDGID If `1`, `true`, then it will copy UID/GID maps to the dest file or + * dir * * } * @@ -712,7 +712,7 @@ public function putContainerArchive(string $id, $requestBody = null, array $quer /** * @param array $queryParameters { * - * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). + * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). * * Available filters: * - `until=` Prune containers created before this timestamp. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. @@ -736,9 +736,9 @@ public function containerPrune(array $queryParameters = [], string $fetch = self * * @param array $queryParameters { * - * @var bool $all Show all images. Only images from a final layer (no children) are shown by default. - * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to - * process on the images list. + * @var bool $all Show all images. Only images from a final layer (no children) are shown by default. + * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to + * process on the images list. * * Available filters: * @@ -747,8 +747,8 @@ public function containerPrune(array $queryParameters = [], string $fetch = self * - `label=key` or `label="key=value"` of an image label * - `reference`=(`[:]`) * - `since`=(`[:]`, `` or ``) - * @var bool $digests Show digest information as a `RepoDigests` field on each image. - * } + * @var bool $digests Show digest information as a `RepoDigests` field on each image. + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -773,43 +773,43 @@ public function imageList(array $queryParameters = [], string $fetch = self::FET * @param string|resource|\Psr\Http\Message\StreamInterface|null $requestBody * @param array $queryParameters { * - * @var string $dockerfile Path within the build context to the `Dockerfile`. This is ignored if `remote` is specified and points to an external `Dockerfile`. - * @var string $t A name and optional tag to apply to the image in the `name:tag` format. If you omit the tag the default `latest` value is assumed. You can provide several `t` parameters. - * @var string $extrahosts Extra hosts to add to /etc/hosts - * @var string $remote A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single text file, the file’s contents are placed into a file called `Dockerfile` and the image is built from that file. If the URI points to a tarball, the file is downloaded by the daemon and the contents therein used as the context for the build. If the URI points to a tarball and the `dockerfile` parameter is also specified, there must be a file with the corresponding path inside the tarball. - * @var bool $q suppress verbose build output - * @var bool $nocache do not use the cache when building the image - * @var string $cachefrom JSON array of images used for build cache resolution - * @var string $pull attempt to pull the image even if an older image exists locally - * @var bool $rm remove intermediate containers after a successful build - * @var bool $forcerm always remove intermediate containers, even upon failure - * @var int $memory set memory limit for build - * @var int $memswap Total memory (memory + swap). Set as `-1` to disable swap. - * @var int $cpushares CPU shares (relative weight) - * @var string $cpusetcpus CPUs in which to allow execution (e.g., `0-3`, `0,1`). - * @var int $cpuperiod the length of a CPU period in microseconds - * @var int $cpuquota microseconds of CPU time that the container can get in a CPU period - * @var string $buildargs JSON map of string pairs for build-time variables. Users pass these values at build-time. Docker uses the buildargs as the environment context for commands run via the `Dockerfile` RUN instruction, or for variable expansion in other `Dockerfile` instructions. This is not meant for passing secret values. + * @var string $dockerfile Path within the build context to the `Dockerfile`. This is ignored if `remote` is specified and points to an external `Dockerfile`. + * @var string $t A name and optional tag to apply to the image in the `name:tag` format. If you omit the tag the default `latest` value is assumed. You can provide several `t` parameters. + * @var string $extrahosts Extra hosts to add to /etc/hosts + * @var string $remote A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single text file, the file’s contents are placed into a file called `Dockerfile` and the image is built from that file. If the URI points to a tarball, the file is downloaded by the daemon and the contents therein used as the context for the build. If the URI points to a tarball and the `dockerfile` parameter is also specified, there must be a file with the corresponding path inside the tarball. + * @var bool $q suppress verbose build output + * @var bool $nocache do not use the cache when building the image + * @var string $cachefrom JSON array of images used for build cache resolution + * @var string $pull attempt to pull the image even if an older image exists locally + * @var bool $rm remove intermediate containers after a successful build + * @var bool $forcerm always remove intermediate containers, even upon failure + * @var int $memory set memory limit for build + * @var int $memswap Total memory (memory + swap). Set as `-1` to disable swap. + * @var int $cpushares CPU shares (relative weight) + * @var string $cpusetcpus CPUs in which to allow execution (e.g., `0-3`, `0,1`). + * @var int $cpuperiod the length of a CPU period in microseconds + * @var int $cpuquota microseconds of CPU time that the container can get in a CPU period + * @var string $buildargs JSON map of string pairs for build-time variables. Users pass these values at build-time. Docker uses the buildargs as the environment context for commands run via the `Dockerfile` RUN instruction, or for variable expansion in other `Dockerfile` instructions. This is not meant for passing secret values. * * For example, the build arg `FOO=bar` would become `{"FOO":"bar"}` in JSON. This would result in the the query parameter `buildargs={"FOO":"bar"}`. Note that `{"FOO":"bar"}` should be URI component encoded. * * [Read more about the buildargs instruction.](https://docs.docker.com/engine/reference/builder/#arg) - * @var int $shmsize Size of `/dev/shm` in bytes. The size must be greater than 0. If omitted the system uses 64MB. - * @var bool $squash Squash the resulting images layers into a single layer. *(Experimental release only.)* - * @var string $labels arbitrary key/value labels to set on the image, as a JSON map of string pairs - * @var string $networkmode Sets the networking mode for the run commands during build. Supported - * standard values are: `bridge`, `host`, `none`, and `container:`. - * Any other value is taken as a custom network's name or ID to which this - * container should connect to. - * @var string $platform Platform in the format os[/arch[/variant]] - * @var string $target Target build stage - * @var string $outputs BuildKit output configuration - * } + * @var int $shmsize Size of `/dev/shm` in bytes. The size must be greater than 0. If omitted the system uses 64MB. + * @var bool $squash Squash the resulting images layers into a single layer. *(Experimental release only.)* + * @var string $labels arbitrary key/value labels to set on the image, as a JSON map of string pairs + * @var string $networkmode Sets the networking mode for the run commands during build. Supported + * standard values are: `bridge`, `host`, `none`, and `container:`. + * Any other value is taken as a custom network's name or ID to which this + * container should connect to. + * @var string $platform Platform in the format os[/arch[/variant]] + * @var string $target Target build stage + * @var string $outputs BuildKit output configuration + * } * * @param array $headerParameters { * - * @var string $Content-type - * @var string $X-Registry-Config This is a base64-encoded JSON object with auth configurations for multiple registries that a build may refer to. + * @var string $Content-type + * @var string $X-Registry-Config This is a base64-encoded JSON object with auth configurations for multiple registries that a build may refer to. * * The key is a registry URL, and the value is an auth configuration object, [as described in the authentication section](#section/Authentication). For example: * @@ -845,10 +845,10 @@ public function imageBuild($requestBody = null, array $queryParameters = [], arr /** * @param array $queryParameters { * - * @var int $keep-storage Amount of disk space in bytes to keep for cache - * @var bool $all Remove all types of build cache - * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to - * process on the list of build cache objects. + * @var int $keep-storage Amount of disk space in bytes to keep for cache + * @var bool $all Remove all types of build cache + * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to + * process on the list of build cache objects. * * Available filters: * @@ -879,17 +879,17 @@ public function buildPrune(array $queryParameters = [], string $fetch = self::FE * * @param array $queryParameters { * - * @var string $fromImage Name of the image to pull. The name may include a tag or digest. This parameter may only be used when pulling an image. The pull is cancelled if the HTTP connection is closed. - * @var string $fromSrc Source to import. The value may be a URL from which the image can be retrieved or `-` to read the image from the request body. This parameter may only be used when importing an image. - * @var string $repo Repository name given to an image when it is imported. The repo may include a tag. This parameter may only be used when importing an image. - * @var string $tag Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled. - * @var string $message set commit message for imported image - * @var string $platform Platform in the format os[/arch[/variant]] - * } + * @var string $fromImage Name of the image to pull. The name may include a tag or digest. This parameter may only be used when pulling an image. The pull is cancelled if the HTTP connection is closed. + * @var string $fromSrc Source to import. The value may be a URL from which the image can be retrieved or `-` to read the image from the request body. This parameter may only be used when importing an image. + * @var string $repo Repository name given to an image when it is imported. The repo may include a tag. This parameter may only be used when importing an image. + * @var string $tag Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled. + * @var string $message set commit message for imported image + * @var string $platform Platform in the format os[/arch[/variant]] + * } * * @param array $headerParameters { * - * @var string $X-Registry-Auth A base64url-encoded auth configuration. + * @var string $X-Registry-Auth A base64url-encoded auth configuration. * * Refer to the [authentication section](#section/Authentication) for * details. @@ -903,7 +903,7 @@ public function buildPrune(array $queryParameters = [], string $fetch = self::FE * * @return \Psr\Http\Message\ResponseInterface|null */ - public function imageCreate(?string $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function imageCreate(string $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Docker\API\Endpoint\ImageCreate($requestBody, $queryParameters, $headerParameters), $fetch); } @@ -952,12 +952,12 @@ public function imageHistory(string $name, string $fetch = self::FETCH_OBJECT) * @param string $name image name or ID * @param array $queryParameters { * - * @var string $tag The tag to associate with the image on the registry. - * } + * @var string $tag The tag to associate with the image on the registry. + * } * * @param array $headerParameters { * - * @var string $X-Registry-Auth A base64url-encoded auth configuration. + * @var string $X-Registry-Auth A base64url-encoded auth configuration. * * Refer to the [authentication section](#section/Authentication) for * details. @@ -983,9 +983,9 @@ public function imagePush(string $name, array $queryParameters = [], array $head * @param string $name image name or ID to tag * @param array $queryParameters { * - * @var string $repo The repository to tag in. For example, `someuser/someimage`. - * @var string $tag The name of the new tag. - * } + * @var string $repo The repository to tag in. For example, `someuser/someimage`. + * @var string $tag The name of the new tag. + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/plain @@ -1012,9 +1012,9 @@ public function imageTag(string $name, array $queryParameters = [], string $fetc * @param string $name Image name or ID * @param array $queryParameters { * - * @var bool $force Remove the image even if it is being used by stopped containers or has other tags - * @var bool $noprune Do not delete untagged parent images - * } + * @var bool $force Remove the image even if it is being used by stopped containers or has other tags + * @var bool $noprune Do not delete untagged parent images + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1034,9 +1034,9 @@ public function imageDelete(string $name, array $queryParameters = [], string $f * * @param array $queryParameters { * - * @var string $term Term to search - * @var int $limit Maximum number of results to return - * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: + * @var string $term Term to search + * @var int $limit Maximum number of results to return + * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: * * - `is-automated=(true|false)` * - `is-official=(true|false)` @@ -1058,7 +1058,7 @@ public function imageSearch(array $queryParameters = [], string $fetch = self::F /** * @param array $queryParameters { * - * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). Available filters: + * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). Available filters: * * - `dangling=` When set to `true` (or `1`), prune only * unused *and* untagged images. When set to `false` @@ -1090,7 +1090,7 @@ public function imagePrune(array $queryParameters = [], string $fetch = self::FE * * @return \Docker\API\Model\AuthPostResponse200|\Psr\Http\Message\ResponseInterface|null */ - public function systemAuth(?Model\AuthConfig $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function systemAuth(Model\AuthConfig $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Docker\API\Endpoint\SystemAuth($requestBody), $fetch); } @@ -1143,14 +1143,14 @@ public function systemPingHead(string $fetch = self::FETCH_OBJECT) * @param \Docker\API\Model\ContainerConfig|null $requestBody * @param array $queryParameters { * - * @var string $container The ID or name of the container to commit - * @var string $repo Repository name for the created image - * @var string $tag Tag name for the create image - * @var string $comment Commit message - * @var string $author Author of the image (e.g., `John Hannibal Smith `) - * @var bool $pause Whether to pause the container before committing - * @var string $changes `Dockerfile` instructions to apply while committing - * } + * @var string $container The ID or name of the container to commit + * @var string $repo Repository name for the created image + * @var string $tag Tag name for the create image + * @var string $comment Commit message + * @var string $author Author of the image (e.g., `John Hannibal Smith `) + * @var bool $pause Whether to pause the container before committing + * @var string $changes `Dockerfile` instructions to apply while committing + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1159,7 +1159,7 @@ public function systemPingHead(string $fetch = self::FETCH_OBJECT) * * @return \Docker\API\Model\IdResponse|\Psr\Http\Message\ResponseInterface|null */ - public function imageCommit(?Model\ContainerConfig $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + public function imageCommit(Model\ContainerConfig $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Docker\API\Endpoint\ImageCommit($requestBody, $queryParameters), $fetch); } @@ -1191,9 +1191,9 @@ public function imageCommit(?Model\ContainerConfig $requestBody = null, array $q * * @param array $queryParameters { * - * @var string $since show events created since this timestamp then stream new events - * @var string $until show events created until this timestamp then stop streaming - * @var string $filters A JSON encoded value of filters (a `map[string][]string`) to process on the event list. Available filters: + * @var string $since show events created since this timestamp then stream new events + * @var string $until show events created until this timestamp then stop streaming + * @var string $filters A JSON encoded value of filters (a `map[string][]string`) to process on the event list. Available filters: * * - `config=` config name or ID * - `container=` container name or ID @@ -1286,8 +1286,8 @@ public function imageGet(string $name, string $fetch = self::FETCH_OBJECT) * * @param array $queryParameters { * - * @var array $names Image names to filter by - * } + * @var array $names Image names to filter by + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1306,8 +1306,8 @@ public function imageGetAll(array $queryParameters = [], string $fetch = self::F * @param string|resource|\Psr\Http\Message\StreamInterface|null $requestBody * @param array $queryParameters { * - * @var bool $quiet Suppress progress details during load. - * } + * @var bool $quiet Suppress progress details during load. + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1333,7 +1333,7 @@ public function imageLoad($requestBody = null, array $queryParameters = [], stri * * @return \Docker\API\Model\IdResponse|\Psr\Http\Message\ResponseInterface|null */ - public function containerExec(string $id, ?Model\ContainersIdExecPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function containerExec(string $id, Model\ContainersIdExecPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerExec($id, $requestBody), $fetch); } @@ -1349,7 +1349,7 @@ public function containerExec(string $id, ?Model\ContainersIdExecPostBody $reque * * @return \Psr\Http\Message\ResponseInterface|null */ - public function execStart(string $id, ?Model\ExecIdStartPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function execStart(string $id, Model\ExecIdStartPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Docker\API\Endpoint\ExecStart($id, $requestBody), $fetch); } @@ -1361,9 +1361,9 @@ public function execStart(string $id, ?Model\ExecIdStartPostBody $requestBody = * @param string $id Exec instance ID * @param array $queryParameters { * - * @var int $h Height of the TTY session in characters - * @var int $w Width of the TTY session in characters - * } + * @var int $h Height of the TTY session in characters + * @var int $w Width of the TTY session in characters + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/plain @@ -1396,8 +1396,8 @@ public function execInspect(string $id, string $fetch = self::FETCH_OBJECT) /** * @param array $queryParameters { * - * @var string $filters JSON encoded value of the filters (a `map[string][]string`) to - * process on the volumes list. Available filters: + * @var string $filters JSON encoded value of the filters (a `map[string][]string`) to + * process on the volumes list. Available filters: * * - `dangling=` When set to `true` (or `1`), returns all * volumes that are not in use by a container. When set to `false` @@ -1429,7 +1429,7 @@ public function volumeList(array $queryParameters = [], string $fetch = self::FE * * @return \Docker\API\Model\Volume|\Psr\Http\Message\ResponseInterface|null */ - public function volumeCreate(?Model\VolumesCreatePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function volumeCreate(Model\VolumesCreatePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Docker\API\Endpoint\VolumeCreate($requestBody), $fetch); } @@ -1440,8 +1440,8 @@ public function volumeCreate(?Model\VolumesCreatePostBody $requestBody = null, s * @param string $name Volume name or ID * @param array $queryParameters { * - * @var bool $force Force the removal of the volume - * } + * @var bool $force Force the removal of the volume + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/plain @@ -1474,7 +1474,7 @@ public function volumeInspect(string $name, string $fetch = self::FETCH_OBJECT) /** * @param array $queryParameters { * - * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). + * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). * * Available filters: * - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune volumes with (or without, in case `label!=...` is used) the specified labels. @@ -1502,8 +1502,8 @@ public function volumePrune(array $queryParameters = [], string $fetch = self::F * * @param array $queryParameters { * - * @var string $filters JSON encoded value of the filters (a `map[string][]string`) to process - * on the networks list. + * @var string $filters JSON encoded value of the filters (a `map[string][]string`) to process + * on the networks list. * * Available filters: * @@ -1551,9 +1551,9 @@ public function networkDelete(string $id, string $fetch = self::FETCH_OBJECT, ar * @param string $id Network ID or name * @param array $queryParameters { * - * @var bool $verbose Detailed inspect output for troubleshooting - * @var string $scope Filter the network by scope (swarm, global, or local) - * } + * @var bool $verbose Detailed inspect output for troubleshooting + * @var string $scope Filter the network by scope (swarm, global, or local) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1577,7 +1577,7 @@ public function networkInspect(string $id, array $queryParameters = [], string $ * * @return \Docker\API\Model\NetworksCreatePostResponse201|\Psr\Http\Message\ResponseInterface|null */ - public function networkCreate(?Model\NetworksCreatePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function networkCreate(Model\NetworksCreatePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Docker\API\Endpoint\NetworkCreate($requestBody), $fetch); } @@ -1594,7 +1594,7 @@ public function networkCreate(?Model\NetworksCreatePostBody $requestBody = null, * * @return \Psr\Http\Message\ResponseInterface|null */ - public function networkConnect(string $id, ?Model\NetworksIdConnectPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) + public function networkConnect(string $id, Model\NetworksIdConnectPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { return $this->executeEndpoint(new \Docker\API\Endpoint\NetworkConnect($id, $requestBody, $accept), $fetch); } @@ -1611,7 +1611,7 @@ public function networkConnect(string $id, ?Model\NetworksIdConnectPostBody $req * * @return \Psr\Http\Message\ResponseInterface|null */ - public function networkDisconnect(string $id, ?Model\NetworksIdDisconnectPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) + public function networkDisconnect(string $id, Model\NetworksIdDisconnectPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { return $this->executeEndpoint(new \Docker\API\Endpoint\NetworkDisconnect($id, $requestBody, $accept), $fetch); } @@ -1619,7 +1619,7 @@ public function networkDisconnect(string $id, ?Model\NetworksIdDisconnectPostBod /** * @param array $queryParameters { * - * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). + * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). * * Available filters: * - `until=` Prune networks created before this timestamp. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. @@ -1643,8 +1643,8 @@ public function networkPrune(array $queryParameters = [], string $fetch = self:: * * @param array $queryParameters { * - * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to - * process on the plugin list. + * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to + * process on the plugin list. * * Available filters: * @@ -1667,8 +1667,8 @@ public function pluginList(array $queryParameters = [], string $fetch = self::FE /** * @param array $queryParameters { * - * @var string $remote The name of the plugin. The `:latest` tag is optional, and is the - * default if omitted. + * @var string $remote The name of the plugin. The `:latest` tag is optional, and is the + * default if omitted. * * } * @@ -1691,10 +1691,10 @@ public function getPluginPrivileges(array $queryParameters = [], string $fetch = * @param \Docker\API\Model\PluginsPullPostBodyItem[]|null $requestBody * @param array $queryParameters { * - * @var string $remote Remote reference for plugin to install. + * @var string $remote Remote reference for plugin to install. * * The `:latest` tag is optional, and is used as the default if omitted. - * @var string $name Local name for the pulled plugin. + * @var string $name Local name for the pulled plugin. * * The `:latest` tag is optional, and is used as the default if omitted. * @@ -1702,8 +1702,8 @@ public function getPluginPrivileges(array $queryParameters = [], string $fetch = * * @param array $headerParameters { * - * @var string $X-Registry-Auth A base64url-encoded auth configuration to use when pulling a plugin - * from a registry. + * @var string $X-Registry-Auth A base64url-encoded auth configuration to use when pulling a plugin + * from a registry. * * Refer to the [authentication section](#section/Authentication) for * details. @@ -1716,7 +1716,7 @@ public function getPluginPrivileges(array $queryParameters = [], string $fetch = * * @return \Psr\Http\Message\ResponseInterface|null */ - public function pluginPull(?array $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function pluginPull(array $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Docker\API\Endpoint\PluginPull($requestBody, $queryParameters, $headerParameters), $fetch); } @@ -1742,8 +1742,8 @@ public function pluginInspect(string $name, string $fetch = self::FETCH_OBJECT, * default if omitted. * @param array $queryParameters { * - * @var bool $force Disable the plugin before removing. This may result in issues if the - * plugin is in use by a container. + * @var bool $force Disable the plugin before removing. This may result in issues if the + * plugin is in use by a container. * * } * @@ -1765,8 +1765,8 @@ public function pluginDelete(string $name, array $queryParameters = [], string $ * default if omitted. * @param array $queryParameters { * - * @var int $timeout Set the HTTP client timeout (in seconds) - * } + * @var int $timeout Set the HTTP client timeout (in seconds) + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/plain @@ -1803,7 +1803,7 @@ public function pluginDisable(string $name, string $fetch = self::FETCH_OBJECT, * @param \Docker\API\Model\PluginsNameUpgradePostBodyItem[]|null $requestBody * @param array $queryParameters { * - * @var string $remote Remote reference to upgrade to. + * @var string $remote Remote reference to upgrade to. * * The `:latest` tag is optional, and is used as the default if omitted. * @@ -1811,8 +1811,8 @@ public function pluginDisable(string $name, string $fetch = self::FETCH_OBJECT, * * @param array $headerParameters { * - * @var string $X-Registry-Auth A base64url-encoded auth configuration to use when pulling a plugin - * from a registry. + * @var string $X-Registry-Auth A base64url-encoded auth configuration to use when pulling a plugin + * from a registry. * * Refer to the [authentication section](#section/Authentication) for * details. @@ -1827,7 +1827,7 @@ public function pluginDisable(string $name, string $fetch = self::FETCH_OBJECT, * * @return \Psr\Http\Message\ResponseInterface|null */ - public function pluginUpgrade(string $name, ?array $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function pluginUpgrade(string $name, array $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { return $this->executeEndpoint(new \Docker\API\Endpoint\PluginUpgrade($name, $requestBody, $queryParameters, $headerParameters, $accept), $fetch); } @@ -1836,8 +1836,8 @@ public function pluginUpgrade(string $name, ?array $requestBody = null, array $q * @param string|resource|\Psr\Http\Message\StreamInterface|null $requestBody * @param array $queryParameters { * - * @var string $name The name of the plugin. The `:latest` tag is optional, and is the - * default if omitted. + * @var string $name The name of the plugin. The `:latest` tag is optional, and is the + * default if omitted. * * } * @@ -1883,7 +1883,7 @@ public function pluginPush(string $name, string $fetch = self::FETCH_OBJECT, arr * * @return \Psr\Http\Message\ResponseInterface|null */ - public function pluginSet(string $name, ?array $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) + public function pluginSet(string $name, array $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { return $this->executeEndpoint(new \Docker\API\Endpoint\PluginSet($name, $requestBody, $accept), $fetch); } @@ -1891,7 +1891,7 @@ public function pluginSet(string $name, ?array $requestBody = null, string $fetc /** * @param array $queryParameters { * - * @var string $filters Filters to process on the nodes list, encoded as JSON (a `map[string][]string`). + * @var string $filters Filters to process on the nodes list, encoded as JSON (a `map[string][]string`). * * Available filters: * - `id=` @@ -1920,8 +1920,8 @@ public function nodeList(array $queryParameters = [], string $fetch = self::FETC * @param string $id The ID or name of the node * @param array $queryParameters { * - * @var bool $force Force remove a node from the swarm - * } + * @var bool $force Force remove a node from the swarm + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/plain @@ -1958,8 +1958,8 @@ public function nodeInspect(string $id, string $fetch = self::FETCH_OBJECT, arra * @param \Docker\API\Model\NodeSpec|null $requestBody * @param array $queryParameters { * - * @var int $version The version number of the node object being updated. This is required - * to avoid conflicting writes. + * @var int $version The version number of the node object being updated. This is required + * to avoid conflicting writes. * * } * @@ -1973,7 +1973,7 @@ public function nodeInspect(string $id, string $fetch = self::FETCH_OBJECT, arra * * @return \Psr\Http\Message\ResponseInterface|null */ - public function nodeUpdate(string $id, ?Model\NodeSpec $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function nodeUpdate(string $id, Model\NodeSpec $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { return $this->executeEndpoint(new \Docker\API\Endpoint\NodeUpdate($id, $requestBody, $queryParameters, $accept), $fetch); } @@ -2004,7 +2004,7 @@ public function swarmInspect(string $fetch = self::FETCH_OBJECT, array $accept = * * @return \Psr\Http\Message\ResponseInterface|null */ - public function swarmInit(?Model\SwarmInitPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) + public function swarmInit(Model\SwarmInitPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { return $this->executeEndpoint(new \Docker\API\Endpoint\SwarmInit($requestBody, $accept), $fetch); } @@ -2020,7 +2020,7 @@ public function swarmInit(?Model\SwarmInitPostBody $requestBody = null, string $ * * @return \Psr\Http\Message\ResponseInterface|null */ - public function swarmJoin(?Model\SwarmJoinPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) + public function swarmJoin(Model\SwarmJoinPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = []) { return $this->executeEndpoint(new \Docker\API\Endpoint\SwarmJoin($requestBody, $accept), $fetch); } @@ -2028,8 +2028,8 @@ public function swarmJoin(?Model\SwarmJoinPostBody $requestBody = null, string $ /** * @param array $queryParameters { * - * @var bool $force Force leave swarm, even if this is the last manager or that it will - * break the cluster. + * @var bool $force Force leave swarm, even if this is the last manager or that it will + * break the cluster. * * } * @@ -2050,12 +2050,12 @@ public function swarmLeave(array $queryParameters = [], string $fetch = self::FE * @param \Docker\API\Model\SwarmSpec|null $requestBody * @param array $queryParameters { * - * @var int $version The version number of the swarm object being updated. This is - * required to avoid conflicting writes. - * @var bool $rotateWorkerToken rotate the worker join token - * @var bool $rotateManagerToken rotate the manager join token - * @var bool $rotateManagerUnlockKey Rotate the manager unlock key. - * } + * @var int $version The version number of the swarm object being updated. This is + * required to avoid conflicting writes. + * @var bool $rotateWorkerToken rotate the worker join token + * @var bool $rotateManagerToken rotate the manager join token + * @var bool $rotateManagerUnlockKey Rotate the manager unlock key. + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/plain @@ -2066,7 +2066,7 @@ public function swarmLeave(array $queryParameters = [], string $fetch = self::FE * * @return \Psr\Http\Message\ResponseInterface|null */ - public function swarmUpdate(?Model\SwarmSpec $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function swarmUpdate(Model\SwarmSpec $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { return $this->executeEndpoint(new \Docker\API\Endpoint\SwarmUpdate($requestBody, $queryParameters, $accept), $fetch); } @@ -2094,7 +2094,7 @@ public function swarmUnlockkey(string $fetch = self::FETCH_OBJECT, array $accept * * @return \Psr\Http\Message\ResponseInterface|null */ - public function swarmUnlock(?Model\SwarmUnlockPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function swarmUnlock(Model\SwarmUnlockPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Docker\API\Endpoint\SwarmUnlock($requestBody), $fetch); } @@ -2102,8 +2102,8 @@ public function swarmUnlock(?Model\SwarmUnlockPostBody $requestBody = null, stri /** * @param array $queryParameters { * - * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to - * process on the services list. + * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to + * process on the services list. * * Available filters: * @@ -2111,7 +2111,7 @@ public function swarmUnlock(?Model\SwarmUnlockPostBody $requestBody = null, stri * - `label=` * - `mode=["replicated"|"global"]` * - `name=` - * @var bool $status Include service status, with count of running and desired tasks. + * @var bool $status Include service status, with count of running and desired tasks. * * } * @@ -2132,8 +2132,8 @@ public function serviceList(array $queryParameters = [], string $fetch = self::F * @param \Docker\API\Model\ServicesCreatePostBody|null $requestBody * @param array $headerParameters { * - * @var string $X-Registry-Auth A base64url-encoded auth configuration for pulling from private - * registries. + * @var string $X-Registry-Auth A base64url-encoded auth configuration for pulling from private + * registries. * * Refer to the [authentication section](#section/Authentication) for * details. @@ -2150,7 +2150,7 @@ public function serviceList(array $queryParameters = [], string $fetch = self::F * * @return \Docker\API\Model\ServicesCreatePostResponse201|\Psr\Http\Message\ResponseInterface|null */ - public function serviceCreate(?Model\ServicesCreatePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function serviceCreate(Model\ServicesCreatePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Docker\API\Endpoint\ServiceCreate($requestBody, $headerParameters), $fetch); } @@ -2175,8 +2175,8 @@ public function serviceDelete(string $id, string $fetch = self::FETCH_OBJECT, ar * @param string $id ID or name of service * @param array $queryParameters { * - * @var bool $insertDefaults Fill empty fields with default values. - * } + * @var bool $insertDefaults Fill empty fields with default values. + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @param array $accept Accept content header application/json|text/plain @@ -2197,23 +2197,23 @@ public function serviceInspect(string $id, array $queryParameters = [], string $ * @param \Docker\API\Model\ServicesIdUpdatePostBody|null $requestBody * @param array $queryParameters { * - * @var int $version The version number of the service object being updated. This is - * required to avoid conflicting writes. - * This version number should be the value as currently set on the - * service *before* the update. You can find the current version by - * calling `GET /services/{id}` - * @var string $registryAuthFrom if the `X-Registry-Auth` header is not specified, this parameter - * indicates where to find registry authorization credentials - * @var string $rollback Set to this parameter to `previous` to cause a server-side rollback - * to the previous service spec. The supplied spec will be ignored in - * this case. + * @var int $version The version number of the service object being updated. This is + * required to avoid conflicting writes. + * This version number should be the value as currently set on the + * service *before* the update. You can find the current version by + * calling `GET /services/{id}` + * @var string $registryAuthFrom if the `X-Registry-Auth` header is not specified, this parameter + * indicates where to find registry authorization credentials + * @var string $rollback Set to this parameter to `previous` to cause a server-side rollback + * to the previous service spec. The supplied spec will be ignored in + * this case. * * } * * @param array $headerParameters { * - * @var string $X-Registry-Auth A base64url-encoded auth configuration for pulling from private - * registries. + * @var string $X-Registry-Auth A base64url-encoded auth configuration for pulling from private + * registries. * * Refer to the [authentication section](#section/Authentication) for * details. @@ -2229,7 +2229,7 @@ public function serviceInspect(string $id, array $queryParameters = [], string $ * * @return \Docker\API\Model\ServiceUpdateResponse|\Psr\Http\Message\ResponseInterface|null */ - public function serviceUpdate(string $id, ?Model\ServicesIdUpdatePostBody $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) + public function serviceUpdate(string $id, Model\ServicesIdUpdatePostBody $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Docker\API\Endpoint\ServiceUpdate($id, $requestBody, $queryParameters, $headerParameters), $fetch); } @@ -2244,14 +2244,14 @@ public function serviceUpdate(string $id, ?Model\ServicesIdUpdatePostBody $reque * @param string $id ID or name of the service * @param array $queryParameters { * - * @var bool $details show service context and extra details provided to logs - * @var bool $follow keep connection after returning logs - * @var bool $stdout Return logs from `stdout` - * @var bool $stderr Return logs from `stderr` - * @var int $since Only return logs since this time, as a UNIX timestamp - * @var bool $timestamps Add timestamps to every log line - * @var string $tail Only return this number of log lines from the end of the logs. - * Specify as an integer or `all` to output all log lines. + * @var bool $details show service context and extra details provided to logs + * @var bool $follow keep connection after returning logs + * @var bool $stdout Return logs from `stdout` + * @var bool $stderr Return logs from `stderr` + * @var int $since Only return logs since this time, as a UNIX timestamp + * @var bool $timestamps Add timestamps to every log line + * @var string $tail Only return this number of log lines from the end of the logs. + * Specify as an integer or `all` to output all log lines. * * } * @@ -2272,8 +2272,8 @@ public function serviceLogs(string $id, array $queryParameters = [], string $fet /** * @param array $queryParameters { * - * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to - * process on the tasks list. + * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to + * process on the tasks list. * * Available filters: * @@ -2323,14 +2323,14 @@ public function taskInspect(string $id, string $fetch = self::FETCH_OBJECT) * @param string $id ID of the task * @param array $queryParameters { * - * @var bool $details show task context and extra details provided to logs - * @var bool $follow keep connection after returning logs - * @var bool $stdout Return logs from `stdout` - * @var bool $stderr Return logs from `stderr` - * @var int $since Only return logs since this time, as a UNIX timestamp - * @var bool $timestamps Add timestamps to every log line - * @var string $tail Only return this number of log lines from the end of the logs. - * Specify as an integer or `all` to output all log lines. + * @var bool $details show task context and extra details provided to logs + * @var bool $follow keep connection after returning logs + * @var bool $stdout Return logs from `stdout` + * @var bool $stderr Return logs from `stderr` + * @var int $since Only return logs since this time, as a UNIX timestamp + * @var bool $timestamps Add timestamps to every log line + * @var string $tail Only return this number of log lines from the end of the logs. + * Specify as an integer or `all` to output all log lines. * * } * @@ -2351,8 +2351,8 @@ public function taskLogs(string $id, array $queryParameters = [], string $fetch /** * @param array $queryParameters { * - * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to - * process on the secrets list. + * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to + * process on the secrets list. * * Available filters: * @@ -2385,7 +2385,7 @@ public function secretList(array $queryParameters = [], string $fetch = self::FE * * @return \Docker\API\Model\IdResponse|\Psr\Http\Message\ResponseInterface|null */ - public function secretCreate(?Model\SecretsCreatePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function secretCreate(Model\SecretsCreatePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Docker\API\Endpoint\SecretCreate($requestBody), $fetch); } @@ -2425,8 +2425,8 @@ public function secretInspect(string $id, string $fetch = self::FETCH_OBJECT) * @param \Docker\API\Model\SecretSpec|null $requestBody * @param array $queryParameters { * - * @var int $version The version number of the secret object being updated. This is - * required to avoid conflicting writes. + * @var int $version The version number of the secret object being updated. This is + * required to avoid conflicting writes. * * } * @@ -2440,7 +2440,7 @@ public function secretInspect(string $id, string $fetch = self::FETCH_OBJECT) * * @return \Psr\Http\Message\ResponseInterface|null */ - public function secretUpdate(string $id, ?Model\SecretSpec $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function secretUpdate(string $id, Model\SecretSpec $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { return $this->executeEndpoint(new \Docker\API\Endpoint\SecretUpdate($id, $requestBody, $queryParameters, $accept), $fetch); } @@ -2448,8 +2448,8 @@ public function secretUpdate(string $id, ?Model\SecretSpec $requestBody = null, /** * @param array $queryParameters { * - * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to - * process on the configs list. + * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to + * process on the configs list. * * Available filters: * @@ -2482,7 +2482,7 @@ public function configList(array $queryParameters = [], string $fetch = self::FE * * @return \Docker\API\Model\IdResponse|\Psr\Http\Message\ResponseInterface|null */ - public function configCreate(?Model\ConfigsCreatePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + public function configCreate(Model\ConfigsCreatePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) { return $this->executeEndpoint(new \Docker\API\Endpoint\ConfigCreate($requestBody), $fetch); } @@ -2522,8 +2522,8 @@ public function configInspect(string $id, string $fetch = self::FETCH_OBJECT) * @param \Docker\API\Model\ConfigSpec|null $requestBody * @param array $queryParameters { * - * @var int $version The version number of the config object being updated. This is - * required to avoid conflicting writes. + * @var int $version The version number of the config object being updated. This is + * required to avoid conflicting writes. * * } * @@ -2537,7 +2537,7 @@ public function configInspect(string $id, string $fetch = self::FETCH_OBJECT) * * @return \Psr\Http\Message\ResponseInterface|null */ - public function configUpdate(string $id, ?Model\ConfigSpec $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) + public function configUpdate(string $id, Model\ConfigSpec $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = []) { return $this->executeEndpoint(new \Docker\API\Endpoint\ConfigUpdate($id, $requestBody, $queryParameters, $accept), $fetch); } diff --git a/src/Endpoint/BuildPrune.php b/src/Endpoint/BuildPrune.php index 5a195e55..57d4d941 100644 --- a/src/Endpoint/BuildPrune.php +++ b/src/Endpoint/BuildPrune.php @@ -11,10 +11,10 @@ class BuildPrune extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc /** * @param array $queryParameters { * - * @var int $keep-storage Amount of disk space in bytes to keep for cache - * @var bool $all Remove all types of build cache - * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to - * process on the list of build cache objects. + * @var int $keep-storage Amount of disk space in bytes to keep for cache + * @var bool $all Remove all types of build cache + * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to + * process on the list of build cache objects. * * Available filters: * @@ -68,13 +68,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\BuildPruneInternalServerErrorException * * @return \Docker\API\Model\BuildPrunePostResponse200|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ConfigCreate.php b/src/Endpoint/ConfigCreate.php index a69e58b0..bcf47e97 100644 --- a/src/Endpoint/ConfigCreate.php +++ b/src/Endpoint/ConfigCreate.php @@ -8,7 +8,7 @@ class ConfigCreate extends \Docker\API\Runtime\Client\BaseEndpoint implements \D { use \Docker\API\Runtime\Client\EndpointTrait; - public function __construct(?\Docker\API\Model\ConfigsCreatePostBody $requestBody = null) + public function __construct(\Docker\API\Model\ConfigsCreatePostBody $requestBody = null) { $this->body = $requestBody; } @@ -38,15 +38,13 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ConfigCreateConflictException * @throws \Docker\API\Exception\ConfigCreateInternalServerErrorException * @throws \Docker\API\Exception\ConfigCreateServiceUnavailableException * * @return \Docker\API\Model\IdResponse|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ConfigDelete.php b/src/Endpoint/ConfigDelete.php index 3e37e7d2..3611ecc0 100644 --- a/src/Endpoint/ConfigDelete.php +++ b/src/Endpoint/ConfigDelete.php @@ -38,15 +38,13 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ConfigDeleteNotFoundException * @throws \Docker\API\Exception\ConfigDeleteInternalServerErrorException * @throws \Docker\API\Exception\ConfigDeleteServiceUnavailableException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ConfigInspect.php b/src/Endpoint/ConfigInspect.php index e9dce43e..0b1a371a 100644 --- a/src/Endpoint/ConfigInspect.php +++ b/src/Endpoint/ConfigInspect.php @@ -38,15 +38,13 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ConfigInspectNotFoundException * @throws \Docker\API\Exception\ConfigInspectInternalServerErrorException * @throws \Docker\API\Exception\ConfigInspectServiceUnavailableException * * @return \Docker\API\Model\Config|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ConfigList.php b/src/Endpoint/ConfigList.php index ba520005..cb670bce 100644 --- a/src/Endpoint/ConfigList.php +++ b/src/Endpoint/ConfigList.php @@ -11,8 +11,8 @@ class ConfigList extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc /** * @param array $queryParameters { * - * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to - * process on the configs list. + * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to + * process on the configs list. * * Available filters: * @@ -60,14 +60,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ConfigListInternalServerErrorException * @throws \Docker\API\Exception\ConfigListServiceUnavailableException * * @return \Docker\API\Model\Config[]|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ConfigUpdate.php b/src/Endpoint/ConfigUpdate.php index 7d19c3d5..b0187890 100644 --- a/src/Endpoint/ConfigUpdate.php +++ b/src/Endpoint/ConfigUpdate.php @@ -14,14 +14,14 @@ class ConfigUpdate extends \Docker\API\Runtime\Client\BaseEndpoint implements \D * @param string $id The ID or name of the config * @param array $queryParameters { * - * @var int $version The version number of the config object being updated. This is - * required to avoid conflicting writes. + * @var int $version The version number of the config object being updated. This is + * required to avoid conflicting writes. * * } * * @param array $accept Accept content header application/json|text/plain */ - public function __construct(string $id, ?\Docker\API\Model\ConfigSpec $requestBody = null, array $queryParameters = [], array $accept = []) + public function __construct(string $id, \Docker\API\Model\ConfigSpec $requestBody = null, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->body = $requestBody; @@ -72,8 +72,6 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ConfigUpdateBadRequestException * @throws \Docker\API\Exception\ConfigUpdateNotFoundException * @throws \Docker\API\Exception\ConfigUpdateInternalServerErrorException @@ -81,7 +79,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerArchive.php b/src/Endpoint/ContainerArchive.php index ddb84684..70cc84e1 100644 --- a/src/Endpoint/ContainerArchive.php +++ b/src/Endpoint/ContainerArchive.php @@ -16,8 +16,8 @@ class ContainerArchive extends \Docker\API\Runtime\Client\BaseEndpoint implement * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $path Resource in the container’s filesystem to archive. - * } + * @var string $path Resource in the container’s filesystem to archive. + * } * * @param array $accept Accept content header application/x-tar|application/json */ @@ -64,13 +64,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerArchiveNotFoundException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerArchiveInfo.php b/src/Endpoint/ContainerArchiveInfo.php index f7edf410..07990ee6 100644 --- a/src/Endpoint/ContainerArchiveInfo.php +++ b/src/Endpoint/ContainerArchiveInfo.php @@ -18,8 +18,8 @@ class ContainerArchiveInfo extends \Docker\API\Runtime\Client\BaseEndpoint imple * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $path Resource in the container’s filesystem to archive. - * } + * @var string $path Resource in the container’s filesystem to archive. + * } * * @param array $accept Accept content header application/json|text/plain */ @@ -66,15 +66,13 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerArchiveInfoBadRequestException * @throws \Docker\API\Exception\ContainerArchiveInfoNotFoundException * @throws \Docker\API\Exception\ContainerArchiveInfoInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerAttach.php b/src/Endpoint/ContainerAttach.php index 1da957bb..6b40bcef 100644 --- a/src/Endpoint/ContainerAttach.php +++ b/src/Endpoint/ContainerAttach.php @@ -108,10 +108,10 @@ class ContainerAttach extends \Docker\API\Runtime\Client\BaseEndpoint implements * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $detachKeys Override the key sequence for detaching a container.Format is a single - * character `[a-Z]` or `ctrl-` where `` is one of: `a-z`, - * `@`, `^`, `[`, `,` or `_`. - * @var bool $logs Replay previous logs from the container. + * @var string $detachKeys Override the key sequence for detaching a container.Format is a single + * character `[a-Z]` or `ctrl-` where `` is one of: `a-z`, + * `@`, `^`, `[`, `,` or `_`. + * @var bool $logs Replay previous logs from the container. * * This is useful for attaching to a container that has started and you * want to output everything since the container started. @@ -119,11 +119,11 @@ class ContainerAttach extends \Docker\API\Runtime\Client\BaseEndpoint implements * If `stream` is also enabled, once all the previous output has been * returned, it will seamlessly transition into streaming current * output. - * @var bool $stream stream attached streams from the time the request was made onwards - * @var bool $stdin Attach to `stdin` - * @var bool $stdout Attach to `stdout` - * @var bool $stderr Attach to `stderr` - * } + * @var bool $stream stream attached streams from the time the request was made onwards + * @var bool $stdin Attach to `stdin` + * @var bool $stdout Attach to `stdout` + * @var bool $stderr Attach to `stderr` + * } * * @param array $accept Accept content header application/vnd.docker.raw-stream|application/json */ @@ -175,13 +175,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerAttachNotFoundException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerAttachWebsocket.php b/src/Endpoint/ContainerAttachWebsocket.php index 254cf8ca..8b69b34f 100644 --- a/src/Endpoint/ContainerAttachWebsocket.php +++ b/src/Endpoint/ContainerAttachWebsocket.php @@ -14,15 +14,15 @@ class ContainerAttachWebsocket extends \Docker\API\Runtime\Client\BaseEndpoint i * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $detachKeys Override the key sequence for detaching a container.Format is a single - * character `[a-Z]` or `ctrl-` where `` is one of: `a-z`, - * `@`, `^`, `[`, `,`, or `_`. - * @var bool $logs Return logs - * @var bool $stream Return stream - * @var bool $stdin Attach to `stdin` - * @var bool $stdout Attach to `stdout` - * @var bool $stderr Attach to `stderr` - * } + * @var string $detachKeys Override the key sequence for detaching a container.Format is a single + * character `[a-Z]` or `ctrl-` where `` is one of: `a-z`, + * `@`, `^`, `[`, `,`, or `_`. + * @var bool $logs Return logs + * @var bool $stream Return stream + * @var bool $stdin Attach to `stdin` + * @var bool $stdout Attach to `stdout` + * @var bool $stderr Attach to `stderr` + * } * * @param array $accept Accept content header application/json|text/plain */ @@ -74,15 +74,13 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerAttachWebsocketBadRequestException * @throws \Docker\API\Exception\ContainerAttachWebsocketNotFoundException * @throws \Docker\API\Exception\ContainerAttachWebsocketInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerChanges.php b/src/Endpoint/ContainerChanges.php index daaa3fe7..e062c08c 100644 --- a/src/Endpoint/ContainerChanges.php +++ b/src/Endpoint/ContainerChanges.php @@ -45,14 +45,12 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerChangesNotFoundException * @throws \Docker\API\Exception\ContainerChangesInternalServerErrorException * * @return \Docker\API\Model\ContainersIdChangesGetResponse200Item[]|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerCreate.php b/src/Endpoint/ContainerCreate.php index 7c8d5ddf..d9f3d1e3 100644 --- a/src/Endpoint/ContainerCreate.php +++ b/src/Endpoint/ContainerCreate.php @@ -11,12 +11,12 @@ class ContainerCreate extends \Docker\API\Runtime\Client\BaseEndpoint implements /** * @param array $queryParameters { * - * @var string $name Assign the specified name to the container. Must match - * `/?[a-zA-Z0-9][a-zA-Z0-9_.-]+`. + * @var string $name Assign the specified name to the container. Must match + * `/?[a-zA-Z0-9][a-zA-Z0-9_.-]+`. * * } */ - public function __construct(?\Docker\API\Model\ContainersCreatePostBody $requestBody = null, array $queryParameters = []) + public function __construct(\Docker\API\Model\ContainersCreatePostBody $requestBody = null, array $queryParameters = []) { $this->body = $requestBody; $this->queryParameters = $queryParameters; @@ -61,8 +61,6 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerCreateBadRequestException * @throws \Docker\API\Exception\ContainerCreateNotFoundException * @throws \Docker\API\Exception\ContainerCreateConflictException @@ -70,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * * @return \Docker\API\Model\ContainersCreatePostResponse201|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerDelete.php b/src/Endpoint/ContainerDelete.php index 1f2591df..ec91e78d 100644 --- a/src/Endpoint/ContainerDelete.php +++ b/src/Endpoint/ContainerDelete.php @@ -14,10 +14,10 @@ class ContainerDelete extends \Docker\API\Runtime\Client\BaseEndpoint implements * @param string $id ID or name of the container * @param array $queryParameters { * - * @var bool $v remove anonymous volumes associated with the container - * @var bool $force if the container is running, kill it before removing it - * @var bool $link Remove the specified link associated with the container. - * } + * @var bool $v remove anonymous volumes associated with the container + * @var bool $force if the container is running, kill it before removing it + * @var bool $link Remove the specified link associated with the container. + * } * * @param array $accept Accept content header application/json|text/plain */ @@ -66,8 +66,6 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerDeleteBadRequestException * @throws \Docker\API\Exception\ContainerDeleteNotFoundException * @throws \Docker\API\Exception\ContainerDeleteConflictException @@ -75,7 +73,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerExec.php b/src/Endpoint/ContainerExec.php index 86bbb8ac..ce6cabd1 100644 --- a/src/Endpoint/ContainerExec.php +++ b/src/Endpoint/ContainerExec.php @@ -14,7 +14,7 @@ class ContainerExec extends \Docker\API\Runtime\Client\BaseEndpoint implements \ * * @param string $id ID or name of container */ - public function __construct(string $id, ?\Docker\API\Model\ContainersIdExecPostBody $requestBody = null) + public function __construct(string $id, \Docker\API\Model\ContainersIdExecPostBody $requestBody = null) { $this->id = $id; $this->body = $requestBody; @@ -45,15 +45,13 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerExecNotFoundException * @throws \Docker\API\Exception\ContainerExecConflictException * @throws \Docker\API\Exception\ContainerExecInternalServerErrorException * * @return \Docker\API\Model\IdResponse|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerExport.php b/src/Endpoint/ContainerExport.php index 87f7fc8a..d7700013 100644 --- a/src/Endpoint/ContainerExport.php +++ b/src/Endpoint/ContainerExport.php @@ -47,13 +47,11 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerExportNotFoundException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerInspect.php b/src/Endpoint/ContainerInspect.php index 3e887421..0899c8b7 100644 --- a/src/Endpoint/ContainerInspect.php +++ b/src/Endpoint/ContainerInspect.php @@ -15,8 +15,8 @@ class ContainerInspect extends \Docker\API\Runtime\Client\BaseEndpoint implement * @param string $id ID or name of the container * @param array $queryParameters { * - * @var bool $size Return the size of container as fields `SizeRw` and `SizeRootFs` - * } + * @var bool $size Return the size of container as fields `SizeRw` and `SizeRootFs` + * } */ public function __construct(string $id, array $queryParameters = []) { @@ -56,14 +56,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerInspectNotFoundException * @throws \Docker\API\Exception\ContainerInspectInternalServerErrorException * * @return \Docker\API\Model\ContainersIdJsonGetResponse200|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerKill.php b/src/Endpoint/ContainerKill.php index 65e96220..c4cfdb71 100644 --- a/src/Endpoint/ContainerKill.php +++ b/src/Endpoint/ContainerKill.php @@ -17,8 +17,8 @@ class ContainerKill extends \Docker\API\Runtime\Client\BaseEndpoint implements \ * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $signal Signal to send to the container as an integer or string (e.g. `SIGINT`) - * } + * @var string $signal Signal to send to the container as an integer or string (e.g. `SIGINT`) + * } * * @param array $accept Accept content header application/json|text/plain */ @@ -65,15 +65,13 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerKillNotFoundException * @throws \Docker\API\Exception\ContainerKillConflictException * @throws \Docker\API\Exception\ContainerKillInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerList.php b/src/Endpoint/ContainerList.php index 9b0965ed..155908b6 100644 --- a/src/Endpoint/ContainerList.php +++ b/src/Endpoint/ContainerList.php @@ -18,13 +18,13 @@ class ContainerList extends \Docker\API\Runtime\Client\BaseEndpoint implements \ * * @param array $queryParameters { * - * @var bool $all Return all containers. By default, only running containers are shown. - * @var int $limit return this number of most recently created containers, including - * non-running ones - * @var bool $size return the size of container as fields `SizeRw` and `SizeRootFs` - * @var string $filters Filters to process on the container list, encoded as JSON (a - * `map[string][]string`). For example, `{"status": ["paused"]}` will - * only return paused containers. + * @var bool $all Return all containers. By default, only running containers are shown. + * @var int $limit return this number of most recently created containers, including + * non-running ones + * @var bool $size return the size of container as fields `SizeRw` and `SizeRootFs` + * @var string $filters Filters to process on the container list, encoded as JSON (a + * `map[string][]string`). For example, `{"status": ["paused"]}` will + * only return paused containers. * * Available filters: * @@ -86,14 +86,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerListBadRequestException * @throws \Docker\API\Exception\ContainerListInternalServerErrorException * * @return \Docker\API\Model\ContainerSummaryItem[]|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerLogs.php b/src/Endpoint/ContainerLogs.php index f0ce8431..0a8b0521 100644 --- a/src/Endpoint/ContainerLogs.php +++ b/src/Endpoint/ContainerLogs.php @@ -19,14 +19,14 @@ class ContainerLogs extends \Docker\API\Runtime\Client\BaseEndpoint implements \ * @param string $id ID or name of the container * @param array $queryParameters { * - * @var bool $follow keep connection after returning logs - * @var bool $stdout Return logs from `stdout` - * @var bool $stderr Return logs from `stderr` - * @var int $since Only return logs since this time, as a UNIX timestamp - * @var int $until Only return logs before this time, as a UNIX timestamp - * @var bool $timestamps Add timestamps to every log line - * @var string $tail Only return this number of log lines from the end of the logs. - * Specify as an integer or `all` to output all log lines. + * @var bool $follow keep connection after returning logs + * @var bool $stdout Return logs from `stdout` + * @var bool $stderr Return logs from `stderr` + * @var int $since Only return logs since this time, as a UNIX timestamp + * @var int $until Only return logs before this time, as a UNIX timestamp + * @var bool $timestamps Add timestamps to every log line + * @var string $tail Only return this number of log lines from the end of the logs. + * Specify as an integer or `all` to output all log lines. * * } * @@ -81,14 +81,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerLogsNotFoundException * @throws \Docker\API\Exception\ContainerLogsInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerPause.php b/src/Endpoint/ContainerPause.php index eb71a79d..a9b03d17 100644 --- a/src/Endpoint/ContainerPause.php +++ b/src/Endpoint/ContainerPause.php @@ -52,14 +52,12 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerPauseNotFoundException * @throws \Docker\API\Exception\ContainerPauseInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerPrune.php b/src/Endpoint/ContainerPrune.php index 0ab5dc32..4f0364db 100644 --- a/src/Endpoint/ContainerPrune.php +++ b/src/Endpoint/ContainerPrune.php @@ -11,7 +11,7 @@ class ContainerPrune extends \Docker\API\Runtime\Client\BaseEndpoint implements /** * @param array $queryParameters { * - * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). + * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). * * Available filters: * - `until=` Prune containers created before this timestamp. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. @@ -56,13 +56,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerPruneInternalServerErrorException * * @return \Docker\API\Model\ContainersPrunePostResponse200|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerRename.php b/src/Endpoint/ContainerRename.php index c737c464..5f9f912e 100644 --- a/src/Endpoint/ContainerRename.php +++ b/src/Endpoint/ContainerRename.php @@ -14,8 +14,8 @@ class ContainerRename extends \Docker\API\Runtime\Client\BaseEndpoint implements * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $name New name for the container - * } + * @var string $name New name for the container + * } * * @param array $accept Accept content header application/json|text/plain */ @@ -62,15 +62,13 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerRenameNotFoundException * @throws \Docker\API\Exception\ContainerRenameConflictException * @throws \Docker\API\Exception\ContainerRenameInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerResize.php b/src/Endpoint/ContainerResize.php index 2784b9e0..133720a1 100644 --- a/src/Endpoint/ContainerResize.php +++ b/src/Endpoint/ContainerResize.php @@ -16,9 +16,9 @@ class ContainerResize extends \Docker\API\Runtime\Client\BaseEndpoint implements * @param string $id ID or name of the container * @param array $queryParameters { * - * @var int $h Height of the TTY session in characters - * @var int $w Width of the TTY session in characters - * } + * @var int $h Height of the TTY session in characters + * @var int $w Width of the TTY session in characters + * } * * @param array $accept Accept content header text/plain|application/json */ @@ -66,13 +66,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerResizeNotFoundException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerRestart.php b/src/Endpoint/ContainerRestart.php index 69142459..f155de16 100644 --- a/src/Endpoint/ContainerRestart.php +++ b/src/Endpoint/ContainerRestart.php @@ -14,8 +14,8 @@ class ContainerRestart extends \Docker\API\Runtime\Client\BaseEndpoint implement * @param string $id ID or name of the container * @param array $queryParameters { * - * @var int $t Number of seconds to wait before killing the container - * } + * @var int $t Number of seconds to wait before killing the container + * } * * @param array $accept Accept content header application/json|text/plain */ @@ -62,14 +62,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerRestartNotFoundException * @throws \Docker\API\Exception\ContainerRestartInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerStart.php b/src/Endpoint/ContainerStart.php index f68cbddc..ddcc8fd6 100644 --- a/src/Endpoint/ContainerStart.php +++ b/src/Endpoint/ContainerStart.php @@ -14,9 +14,9 @@ class ContainerStart extends \Docker\API\Runtime\Client\BaseEndpoint implements * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $detachKeys Override the key sequence for detaching a container. Format is a - * single character `[a-Z]` or `ctrl-` where `` is one - * of: `a-z`, `@`, `^`, `[`, `,` or `_`. + * @var string $detachKeys Override the key sequence for detaching a container. Format is a + * single character `[a-Z]` or `ctrl-` where `` is one + * of: `a-z`, `@`, `^`, `[`, `,` or `_`. * * } * @@ -65,14 +65,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerStartNotFoundException * @throws \Docker\API\Exception\ContainerStartInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerStats.php b/src/Endpoint/ContainerStats.php index 3b7067e1..733f8222 100644 --- a/src/Endpoint/ContainerStats.php +++ b/src/Endpoint/ContainerStats.php @@ -40,10 +40,10 @@ class ContainerStats extends \Docker\API\Runtime\Client\BaseEndpoint implements * @param string $id ID or name of the container * @param array $queryParameters { * - * @var bool $stream Stream the output. If false, the stats will be output once and then - * it will disconnect. - * @var bool $one-shot Only get a single stat instead of waiting for 2 cycles. Must be used - * with `stream=false`. + * @var bool $stream Stream the output. If false, the stats will be output once and then + * it will disconnect. + * @var bool $one-shot Only get a single stat instead of waiting for 2 cycles. Must be used + * with `stream=false`. * * } */ @@ -86,14 +86,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerStatsNotFoundException * @throws \Docker\API\Exception\ContainerStatsInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerStop.php b/src/Endpoint/ContainerStop.php index 8f190fbb..36944eea 100644 --- a/src/Endpoint/ContainerStop.php +++ b/src/Endpoint/ContainerStop.php @@ -14,8 +14,8 @@ class ContainerStop extends \Docker\API\Runtime\Client\BaseEndpoint implements \ * @param string $id ID or name of the container * @param array $queryParameters { * - * @var int $t Number of seconds to wait before killing the container - * } + * @var int $t Number of seconds to wait before killing the container + * } * * @param array $accept Accept content header application/json|text/plain */ @@ -62,14 +62,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerStopNotFoundException * @throws \Docker\API\Exception\ContainerStopInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerTop.php b/src/Endpoint/ContainerTop.php index e24e60c4..dc702721 100644 --- a/src/Endpoint/ContainerTop.php +++ b/src/Endpoint/ContainerTop.php @@ -17,8 +17,8 @@ class ContainerTop extends \Docker\API\Runtime\Client\BaseEndpoint implements \D * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $ps_args The arguments to pass to `ps`. For example, `aux` - * } + * @var string $ps_args The arguments to pass to `ps`. For example, `aux` + * } * * @param array $accept Accept content header application/json|text/plain */ @@ -65,14 +65,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerTopNotFoundException * @throws \Docker\API\Exception\ContainerTopInternalServerErrorException * * @return \Docker\API\Model\ContainersIdTopGetJsonResponse200|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerUnpause.php b/src/Endpoint/ContainerUnpause.php index affdd66d..aad29059 100644 --- a/src/Endpoint/ContainerUnpause.php +++ b/src/Endpoint/ContainerUnpause.php @@ -47,14 +47,12 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerUnpauseNotFoundException * @throws \Docker\API\Exception\ContainerUnpauseInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerUpdate.php b/src/Endpoint/ContainerUpdate.php index 46e8847b..b34a3ad9 100644 --- a/src/Endpoint/ContainerUpdate.php +++ b/src/Endpoint/ContainerUpdate.php @@ -15,7 +15,7 @@ class ContainerUpdate extends \Docker\API\Runtime\Client\BaseEndpoint implements * * @param string $id ID or name of the container */ - public function __construct(string $id, ?\Docker\API\Model\ContainersIdUpdatePostBody $requestBody = null) + public function __construct(string $id, \Docker\API\Model\ContainersIdUpdatePostBody $requestBody = null) { $this->id = $id; $this->body = $requestBody; @@ -46,14 +46,12 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerUpdateNotFoundException * @throws \Docker\API\Exception\ContainerUpdateInternalServerErrorException * * @return \Docker\API\Model\ContainersIdUpdatePostResponse200|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ContainerWait.php b/src/Endpoint/ContainerWait.php index 71f29c22..dbef9967 100644 --- a/src/Endpoint/ContainerWait.php +++ b/src/Endpoint/ContainerWait.php @@ -15,8 +15,8 @@ class ContainerWait extends \Docker\API\Runtime\Client\BaseEndpoint implements \ * @param string $id ID or name of the container * @param array $queryParameters { * - * @var string $condition Wait until a container state reaches the given condition, either - * 'not-running' (default), 'next-exit', or 'removed'. + * @var string $condition Wait until a container state reaches the given condition, either + * 'not-running' (default), 'next-exit', or 'removed'. * * } */ @@ -58,14 +58,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ContainerWaitNotFoundException * @throws \Docker\API\Exception\ContainerWaitInternalServerErrorException * * @return \Docker\API\Model\ContainersIdWaitPostResponse200|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/DistributionInspect.php b/src/Endpoint/DistributionInspect.php index cfb251cd..5e46e63c 100644 --- a/src/Endpoint/DistributionInspect.php +++ b/src/Endpoint/DistributionInspect.php @@ -40,14 +40,12 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\DistributionInspectUnauthorizedException * @throws \Docker\API\Exception\DistributionInspectInternalServerErrorException * * @return \Docker\API\Model\DistributionNameJsonGetResponse200|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ExecInspect.php b/src/Endpoint/ExecInspect.php index 0360a14c..59d6e30c 100644 --- a/src/Endpoint/ExecInspect.php +++ b/src/Endpoint/ExecInspect.php @@ -40,14 +40,12 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ExecInspectNotFoundException * @throws \Docker\API\Exception\ExecInspectInternalServerErrorException * * @return \Docker\API\Model\ExecIdJsonGetResponse200|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ExecResize.php b/src/Endpoint/ExecResize.php index 0a6377f6..e9dbef6a 100644 --- a/src/Endpoint/ExecResize.php +++ b/src/Endpoint/ExecResize.php @@ -17,9 +17,9 @@ class ExecResize extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc * @param string $id Exec instance ID * @param array $queryParameters { * - * @var int $h Height of the TTY session in characters - * @var int $w Width of the TTY session in characters - * } + * @var int $h Height of the TTY session in characters + * @var int $w Width of the TTY session in characters + * } * * @param array $accept Accept content header application/json|text/plain */ @@ -67,13 +67,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ExecResizeNotFoundException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ExecStart.php b/src/Endpoint/ExecStart.php index 9b6cc716..d3eb3849 100644 --- a/src/Endpoint/ExecStart.php +++ b/src/Endpoint/ExecStart.php @@ -16,7 +16,7 @@ class ExecStart extends \Docker\API\Runtime\Client\BaseEndpoint implements \Dock * * @param string $id Exec instance ID */ - public function __construct(string $id, ?\Docker\API\Model\ExecIdStartPostBody $requestBody = null) + public function __construct(string $id, \Docker\API\Model\ExecIdStartPostBody $requestBody = null) { $this->id = $id; $this->body = $requestBody; @@ -47,11 +47,9 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/GetPluginPrivileges.php b/src/Endpoint/GetPluginPrivileges.php index 12613780..314f528c 100644 --- a/src/Endpoint/GetPluginPrivileges.php +++ b/src/Endpoint/GetPluginPrivileges.php @@ -12,8 +12,8 @@ class GetPluginPrivileges extends \Docker\API\Runtime\Client\BaseEndpoint implem /** * @param array $queryParameters { * - * @var string $remote The name of the plugin. The `:latest` tag is optional, and is the - * default if omitted. + * @var string $remote The name of the plugin. The `:latest` tag is optional, and is the + * default if omitted. * * } * @@ -61,13 +61,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\GetPluginPrivilegesInternalServerErrorException * * @return \Docker\API\Model\PluginsPrivilegesGetJsonResponse200Item[]|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ImageBuild.php b/src/Endpoint/ImageBuild.php index 685d5c35..cb34d94d 100644 --- a/src/Endpoint/ImageBuild.php +++ b/src/Endpoint/ImageBuild.php @@ -20,43 +20,43 @@ class ImageBuild extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc * @param string|resource|\Psr\Http\Message\StreamInterface|null $requestBody * @param array $queryParameters { * - * @var string $dockerfile Path within the build context to the `Dockerfile`. This is ignored if `remote` is specified and points to an external `Dockerfile`. - * @var string $t A name and optional tag to apply to the image in the `name:tag` format. If you omit the tag the default `latest` value is assumed. You can provide several `t` parameters. - * @var string $extrahosts Extra hosts to add to /etc/hosts - * @var string $remote A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single text file, the file’s contents are placed into a file called `Dockerfile` and the image is built from that file. If the URI points to a tarball, the file is downloaded by the daemon and the contents therein used as the context for the build. If the URI points to a tarball and the `dockerfile` parameter is also specified, there must be a file with the corresponding path inside the tarball. - * @var bool $q suppress verbose build output - * @var bool $nocache do not use the cache when building the image - * @var string $cachefrom JSON array of images used for build cache resolution - * @var string $pull attempt to pull the image even if an older image exists locally - * @var bool $rm remove intermediate containers after a successful build - * @var bool $forcerm always remove intermediate containers, even upon failure - * @var int $memory set memory limit for build - * @var int $memswap Total memory (memory + swap). Set as `-1` to disable swap. - * @var int $cpushares CPU shares (relative weight) - * @var string $cpusetcpus CPUs in which to allow execution (e.g., `0-3`, `0,1`). - * @var int $cpuperiod the length of a CPU period in microseconds - * @var int $cpuquota microseconds of CPU time that the container can get in a CPU period - * @var string $buildargs JSON map of string pairs for build-time variables. Users pass these values at build-time. Docker uses the buildargs as the environment context for commands run via the `Dockerfile` RUN instruction, or for variable expansion in other `Dockerfile` instructions. This is not meant for passing secret values. + * @var string $dockerfile Path within the build context to the `Dockerfile`. This is ignored if `remote` is specified and points to an external `Dockerfile`. + * @var string $t A name and optional tag to apply to the image in the `name:tag` format. If you omit the tag the default `latest` value is assumed. You can provide several `t` parameters. + * @var string $extrahosts Extra hosts to add to /etc/hosts + * @var string $remote A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single text file, the file’s contents are placed into a file called `Dockerfile` and the image is built from that file. If the URI points to a tarball, the file is downloaded by the daemon and the contents therein used as the context for the build. If the URI points to a tarball and the `dockerfile` parameter is also specified, there must be a file with the corresponding path inside the tarball. + * @var bool $q suppress verbose build output + * @var bool $nocache do not use the cache when building the image + * @var string $cachefrom JSON array of images used for build cache resolution + * @var string $pull attempt to pull the image even if an older image exists locally + * @var bool $rm remove intermediate containers after a successful build + * @var bool $forcerm always remove intermediate containers, even upon failure + * @var int $memory set memory limit for build + * @var int $memswap Total memory (memory + swap). Set as `-1` to disable swap. + * @var int $cpushares CPU shares (relative weight) + * @var string $cpusetcpus CPUs in which to allow execution (e.g., `0-3`, `0,1`). + * @var int $cpuperiod the length of a CPU period in microseconds + * @var int $cpuquota microseconds of CPU time that the container can get in a CPU period + * @var string $buildargs JSON map of string pairs for build-time variables. Users pass these values at build-time. Docker uses the buildargs as the environment context for commands run via the `Dockerfile` RUN instruction, or for variable expansion in other `Dockerfile` instructions. This is not meant for passing secret values. * * For example, the build arg `FOO=bar` would become `{"FOO":"bar"}` in JSON. This would result in the the query parameter `buildargs={"FOO":"bar"}`. Note that `{"FOO":"bar"}` should be URI component encoded. * * [Read more about the buildargs instruction.](https://docs.docker.com/engine/reference/builder/#arg) - * @var int $shmsize Size of `/dev/shm` in bytes. The size must be greater than 0. If omitted the system uses 64MB. - * @var bool $squash Squash the resulting images layers into a single layer. *(Experimental release only.)* - * @var string $labels arbitrary key/value labels to set on the image, as a JSON map of string pairs - * @var string $networkmode Sets the networking mode for the run commands during build. Supported - * standard values are: `bridge`, `host`, `none`, and `container:`. - * Any other value is taken as a custom network's name or ID to which this - * container should connect to. - * @var string $platform Platform in the format os[/arch[/variant]] - * @var string $target Target build stage - * @var string $outputs BuildKit output configuration - * } + * @var int $shmsize Size of `/dev/shm` in bytes. The size must be greater than 0. If omitted the system uses 64MB. + * @var bool $squash Squash the resulting images layers into a single layer. *(Experimental release only.)* + * @var string $labels arbitrary key/value labels to set on the image, as a JSON map of string pairs + * @var string $networkmode Sets the networking mode for the run commands during build. Supported + * standard values are: `bridge`, `host`, `none`, and `container:`. + * Any other value is taken as a custom network's name or ID to which this + * container should connect to. + * @var string $platform Platform in the format os[/arch[/variant]] + * @var string $target Target build stage + * @var string $outputs BuildKit output configuration + * } * * @param array $headerParameters { * - * @var string $Content-type - * @var string $X-Registry-Config This is a base64-encoded JSON object with auth configurations for multiple registries that a build may refer to. + * @var string $Content-type + * @var string $X-Registry-Config This is a base64-encoded JSON object with auth configurations for multiple registries that a build may refer to. * * The key is a registry URL, and the value is an auth configuration object, [as described in the authentication section](#section/Authentication). For example: * @@ -155,14 +155,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ImageBuildBadRequestException * @throws \Docker\API\Exception\ImageBuildInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ImageCommit.php b/src/Endpoint/ImageCommit.php index 79550280..4f3ca5eb 100644 --- a/src/Endpoint/ImageCommit.php +++ b/src/Endpoint/ImageCommit.php @@ -11,16 +11,16 @@ class ImageCommit extends \Docker\API\Runtime\Client\BaseEndpoint implements \Do /** * @param array $queryParameters { * - * @var string $container The ID or name of the container to commit - * @var string $repo Repository name for the created image - * @var string $tag Tag name for the create image - * @var string $comment Commit message - * @var string $author Author of the image (e.g., `John Hannibal Smith `) - * @var bool $pause Whether to pause the container before committing - * @var string $changes `Dockerfile` instructions to apply while committing - * } + * @var string $container The ID or name of the container to commit + * @var string $repo Repository name for the created image + * @var string $tag Tag name for the create image + * @var string $comment Commit message + * @var string $author Author of the image (e.g., `John Hannibal Smith `) + * @var bool $pause Whether to pause the container before committing + * @var string $changes `Dockerfile` instructions to apply while committing + * } */ - public function __construct(?\Docker\API\Model\ContainerConfig $requestBody = null, array $queryParameters = []) + public function __construct(\Docker\API\Model\ContainerConfig $requestBody = null, array $queryParameters = []) { $this->body = $requestBody; $this->queryParameters = $queryParameters; @@ -68,14 +68,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ImageCommitNotFoundException * @throws \Docker\API\Exception\ImageCommitInternalServerErrorException * * @return \Docker\API\Model\IdResponse|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ImageCreate.php b/src/Endpoint/ImageCreate.php index 9d1c308d..c502b0a4 100644 --- a/src/Endpoint/ImageCreate.php +++ b/src/Endpoint/ImageCreate.php @@ -13,24 +13,24 @@ class ImageCreate extends \Docker\API\Runtime\Client\BaseEndpoint implements \Do * * @param array $queryParameters { * - * @var string $fromImage Name of the image to pull. The name may include a tag or digest. This parameter may only be used when pulling an image. The pull is cancelled if the HTTP connection is closed. - * @var string $fromSrc Source to import. The value may be a URL from which the image can be retrieved or `-` to read the image from the request body. This parameter may only be used when importing an image. - * @var string $repo Repository name given to an image when it is imported. The repo may include a tag. This parameter may only be used when importing an image. - * @var string $tag Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled. - * @var string $message set commit message for imported image - * @var string $platform Platform in the format os[/arch[/variant]] - * } + * @var string $fromImage Name of the image to pull. The name may include a tag or digest. This parameter may only be used when pulling an image. The pull is cancelled if the HTTP connection is closed. + * @var string $fromSrc Source to import. The value may be a URL from which the image can be retrieved or `-` to read the image from the request body. This parameter may only be used when importing an image. + * @var string $repo Repository name given to an image when it is imported. The repo may include a tag. This parameter may only be used when importing an image. + * @var string $tag Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled. + * @var string $message set commit message for imported image + * @var string $platform Platform in the format os[/arch[/variant]] + * } * * @param array $headerParameters { * - * @var string $X-Registry-Auth A base64url-encoded auth configuration. + * @var string $X-Registry-Auth A base64url-encoded auth configuration. * * Refer to the [authentication section](#section/Authentication) for * details. * * } */ - public function __construct(?string $requestBody = null, array $queryParameters = [], array $headerParameters = []) + public function __construct(string $requestBody = null, array $queryParameters = [], array $headerParameters = []) { $this->body = $requestBody; $this->queryParameters = $queryParameters; @@ -92,14 +92,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ImageCreateNotFoundException * @throws \Docker\API\Exception\ImageCreateInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ImageDelete.php b/src/Endpoint/ImageDelete.php index 7c8cb323..dac243ff 100644 --- a/src/Endpoint/ImageDelete.php +++ b/src/Endpoint/ImageDelete.php @@ -19,9 +19,9 @@ class ImageDelete extends \Docker\API\Runtime\Client\BaseEndpoint implements \Do * @param string $name Image name or ID * @param array $queryParameters { * - * @var bool $force Remove the image even if it is being used by stopped containers or has other tags - * @var bool $noprune Do not delete untagged parent images - * } + * @var bool $force Remove the image even if it is being used by stopped containers or has other tags + * @var bool $noprune Do not delete untagged parent images + * } */ public function __construct(string $name, array $queryParameters = []) { @@ -62,15 +62,13 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ImageDeleteNotFoundException * @throws \Docker\API\Exception\ImageDeleteConflictException * @throws \Docker\API\Exception\ImageDeleteInternalServerErrorException * * @return \Docker\API\Model\ImageDeleteResponseItem[]|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ImageGet.php b/src/Endpoint/ImageGet.php index 02117615..006fc0b1 100644 --- a/src/Endpoint/ImageGet.php +++ b/src/Endpoint/ImageGet.php @@ -62,11 +62,9 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ImageGetAll.php b/src/Endpoint/ImageGetAll.php index 5044b827..628a7188 100644 --- a/src/Endpoint/ImageGetAll.php +++ b/src/Endpoint/ImageGetAll.php @@ -22,8 +22,8 @@ class ImageGetAll extends \Docker\API\Runtime\Client\BaseEndpoint implements \Do * * @param array $queryParameters { * - * @var array $names Image names to filter by - * } + * @var array $names Image names to filter by + * } */ public function __construct(array $queryParameters = []) { @@ -62,11 +62,9 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ImageHistory.php b/src/Endpoint/ImageHistory.php index 9d9881e6..54609865 100644 --- a/src/Endpoint/ImageHistory.php +++ b/src/Endpoint/ImageHistory.php @@ -40,14 +40,12 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ImageHistoryNotFoundException * @throws \Docker\API\Exception\ImageHistoryInternalServerErrorException * * @return \Docker\API\Model\ImagesNameHistoryGetResponse200Item[]|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ImageInspect.php b/src/Endpoint/ImageInspect.php index 9a5ffc1f..80d5a29c 100644 --- a/src/Endpoint/ImageInspect.php +++ b/src/Endpoint/ImageInspect.php @@ -40,14 +40,12 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ImageInspectNotFoundException * @throws \Docker\API\Exception\ImageInspectInternalServerErrorException * * @return \Docker\API\Model\Image|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ImageList.php b/src/Endpoint/ImageList.php index 94a3fe5a..da96c259 100644 --- a/src/Endpoint/ImageList.php +++ b/src/Endpoint/ImageList.php @@ -13,9 +13,9 @@ class ImageList extends \Docker\API\Runtime\Client\BaseEndpoint implements \Dock * * @param array $queryParameters { * - * @var bool $all Show all images. Only images from a final layer (no children) are shown by default. - * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to - * process on the images list. + * @var bool $all Show all images. Only images from a final layer (no children) are shown by default. + * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to + * process on the images list. * * Available filters: * @@ -24,8 +24,8 @@ class ImageList extends \Docker\API\Runtime\Client\BaseEndpoint implements \Dock * - `label=key` or `label="key=value"` of an image label * - `reference`=(`[:]`) * - `since`=(`[:]`, `` or ``) - * @var bool $digests Show digest information as a `RepoDigests` field on each image. - * } + * @var bool $digests Show digest information as a `RepoDigests` field on each image. + * } */ public function __construct(array $queryParameters = []) { @@ -66,13 +66,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ImageListInternalServerErrorException * * @return \Docker\API\Model\ImageSummary[]|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ImageLoad.php b/src/Endpoint/ImageLoad.php index f83de195..9da73b2f 100644 --- a/src/Endpoint/ImageLoad.php +++ b/src/Endpoint/ImageLoad.php @@ -16,8 +16,8 @@ class ImageLoad extends \Docker\API\Runtime\Client\BaseEndpoint implements \Dock * @param string|resource|\Psr\Http\Message\StreamInterface|null $requestBody * @param array $queryParameters { * - * @var bool $quiet Suppress progress details during load. - * } + * @var bool $quiet Suppress progress details during load. + * } */ public function __construct($requestBody = null, array $queryParameters = []) { @@ -61,13 +61,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ImageLoadInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ImagePrune.php b/src/Endpoint/ImagePrune.php index afaae8d7..a156697d 100644 --- a/src/Endpoint/ImagePrune.php +++ b/src/Endpoint/ImagePrune.php @@ -11,7 +11,7 @@ class ImagePrune extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc /** * @param array $queryParameters { * - * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). Available filters: + * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). Available filters: * * - `dangling=` When set to `true` (or `1`), prune only * unused *and* untagged images. When set to `false` @@ -58,13 +58,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ImagePruneInternalServerErrorException * * @return \Docker\API\Model\ImagesPrunePostResponse200|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ImagePush.php b/src/Endpoint/ImagePush.php index cfe77d21..0753d681 100644 --- a/src/Endpoint/ImagePush.php +++ b/src/Endpoint/ImagePush.php @@ -22,12 +22,12 @@ class ImagePush extends \Docker\API\Runtime\Client\BaseEndpoint implements \Dock * @param string $name image name or ID * @param array $queryParameters { * - * @var string $tag The tag to associate with the image on the registry. - * } + * @var string $tag The tag to associate with the image on the registry. + * } * * @param array $headerParameters { * - * @var string $X-Registry-Auth A base64url-encoded auth configuration. + * @var string $X-Registry-Auth A base64url-encoded auth configuration. * * Refer to the [authentication section](#section/Authentication) for * details. @@ -91,14 +91,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ImagePushNotFoundException * @throws \Docker\API\Exception\ImagePushInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ImageSearch.php b/src/Endpoint/ImageSearch.php index 70e4ed45..e7ccffee 100644 --- a/src/Endpoint/ImageSearch.php +++ b/src/Endpoint/ImageSearch.php @@ -13,9 +13,9 @@ class ImageSearch extends \Docker\API\Runtime\Client\BaseEndpoint implements \Do * * @param array $queryParameters { * - * @var string $term Term to search - * @var int $limit Maximum number of results to return - * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: + * @var string $term Term to search + * @var int $limit Maximum number of results to return + * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: * * - `is-automated=(true|false)` * - `is-official=(true|false)` @@ -62,13 +62,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ImageSearchInternalServerErrorException * * @return \Docker\API\Model\ImagesSearchGetResponse200Item[]|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ImageTag.php b/src/Endpoint/ImageTag.php index 46fcfe7a..75c0701a 100644 --- a/src/Endpoint/ImageTag.php +++ b/src/Endpoint/ImageTag.php @@ -16,9 +16,9 @@ class ImageTag extends \Docker\API\Runtime\Client\BaseEndpoint implements \Docke * @param string $name image name or ID to tag * @param array $queryParameters { * - * @var string $repo The repository to tag in. For example, `someuser/someimage`. - * @var string $tag The name of the new tag. - * } + * @var string $repo The repository to tag in. For example, `someuser/someimage`. + * @var string $tag The name of the new tag. + * } * * @param array $accept Accept content header application/json|text/plain */ @@ -66,8 +66,6 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ImageTagBadRequestException * @throws \Docker\API\Exception\ImageTagNotFoundException * @throws \Docker\API\Exception\ImageTagConflictException @@ -75,7 +73,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/NetworkConnect.php b/src/Endpoint/NetworkConnect.php index 08bd274e..2dcbb119 100644 --- a/src/Endpoint/NetworkConnect.php +++ b/src/Endpoint/NetworkConnect.php @@ -14,7 +14,7 @@ class NetworkConnect extends \Docker\API\Runtime\Client\BaseEndpoint implements * @param string $id Network ID or name * @param array $accept Accept content header application/json|text/plain */ - public function __construct(string $id, ?\Docker\API\Model\NetworksIdConnectPostBody $requestBody = null, array $accept = []) + public function __construct(string $id, \Docker\API\Model\NetworksIdConnectPostBody $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; @@ -50,15 +50,13 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\NetworkConnectForbiddenException * @throws \Docker\API\Exception\NetworkConnectNotFoundException * @throws \Docker\API\Exception\NetworkConnectInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/NetworkCreate.php b/src/Endpoint/NetworkCreate.php index 0ca9cd3a..0c9b9b22 100644 --- a/src/Endpoint/NetworkCreate.php +++ b/src/Endpoint/NetworkCreate.php @@ -8,7 +8,7 @@ class NetworkCreate extends \Docker\API\Runtime\Client\BaseEndpoint implements \ { use \Docker\API\Runtime\Client\EndpointTrait; - public function __construct(?\Docker\API\Model\NetworksCreatePostBody $requestBody = null) + public function __construct(\Docker\API\Model\NetworksCreatePostBody $requestBody = null) { $this->body = $requestBody; } @@ -38,15 +38,13 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\NetworkCreateForbiddenException * @throws \Docker\API\Exception\NetworkCreateNotFoundException * @throws \Docker\API\Exception\NetworkCreateInternalServerErrorException * * @return \Docker\API\Model\NetworksCreatePostResponse201|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/NetworkDelete.php b/src/Endpoint/NetworkDelete.php index 1291211f..46a80a38 100644 --- a/src/Endpoint/NetworkDelete.php +++ b/src/Endpoint/NetworkDelete.php @@ -45,15 +45,13 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\NetworkDeleteForbiddenException * @throws \Docker\API\Exception\NetworkDeleteNotFoundException * @throws \Docker\API\Exception\NetworkDeleteInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/NetworkDisconnect.php b/src/Endpoint/NetworkDisconnect.php index 43a4d81e..6add05be 100644 --- a/src/Endpoint/NetworkDisconnect.php +++ b/src/Endpoint/NetworkDisconnect.php @@ -14,7 +14,7 @@ class NetworkDisconnect extends \Docker\API\Runtime\Client\BaseEndpoint implemen * @param string $id Network ID or name * @param array $accept Accept content header application/json|text/plain */ - public function __construct(string $id, ?\Docker\API\Model\NetworksIdDisconnectPostBody $requestBody = null, array $accept = []) + public function __construct(string $id, \Docker\API\Model\NetworksIdDisconnectPostBody $requestBody = null, array $accept = []) { $this->id = $id; $this->body = $requestBody; @@ -50,15 +50,13 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\NetworkDisconnectForbiddenException * @throws \Docker\API\Exception\NetworkDisconnectNotFoundException * @throws \Docker\API\Exception\NetworkDisconnectInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/NetworkInspect.php b/src/Endpoint/NetworkInspect.php index 6f446b15..2040c49f 100644 --- a/src/Endpoint/NetworkInspect.php +++ b/src/Endpoint/NetworkInspect.php @@ -13,9 +13,9 @@ class NetworkInspect extends \Docker\API\Runtime\Client\BaseEndpoint implements * @param string $id Network ID or name * @param array $queryParameters { * - * @var bool $verbose Detailed inspect output for troubleshooting - * @var string $scope Filter the network by scope (swarm, global, or local) - * } + * @var bool $verbose Detailed inspect output for troubleshooting + * @var string $scope Filter the network by scope (swarm, global, or local) + * } */ public function __construct(string $id, array $queryParameters = []) { @@ -56,14 +56,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\NetworkInspectNotFoundException * @throws \Docker\API\Exception\NetworkInspectInternalServerErrorException * * @return \Docker\API\Model\Network|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/NetworkList.php b/src/Endpoint/NetworkList.php index 5a4fea7d..56d520f3 100644 --- a/src/Endpoint/NetworkList.php +++ b/src/Endpoint/NetworkList.php @@ -18,8 +18,8 @@ class NetworkList extends \Docker\API\Runtime\Client\BaseEndpoint implements \Do * * @param array $queryParameters { * - * @var string $filters JSON encoded value of the filters (a `map[string][]string`) to process - * on the networks list. + * @var string $filters JSON encoded value of the filters (a `map[string][]string`) to process + * on the networks list. * * Available filters: * @@ -73,13 +73,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\NetworkListInternalServerErrorException * * @return \Docker\API\Model\Network[]|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/NetworkPrune.php b/src/Endpoint/NetworkPrune.php index f70856ef..934f9be8 100644 --- a/src/Endpoint/NetworkPrune.php +++ b/src/Endpoint/NetworkPrune.php @@ -11,7 +11,7 @@ class NetworkPrune extends \Docker\API\Runtime\Client\BaseEndpoint implements \D /** * @param array $queryParameters { * - * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). + * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). * * Available filters: * - `until=` Prune networks created before this timestamp. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. @@ -56,13 +56,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\NetworkPruneInternalServerErrorException * * @return \Docker\API\Model\NetworksPrunePostResponse200|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/NodeDelete.php b/src/Endpoint/NodeDelete.php index 2c6f8da3..b7864173 100644 --- a/src/Endpoint/NodeDelete.php +++ b/src/Endpoint/NodeDelete.php @@ -14,8 +14,8 @@ class NodeDelete extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc * @param string $id The ID or name of the node * @param array $queryParameters { * - * @var bool $force Force remove a node from the swarm - * } + * @var bool $force Force remove a node from the swarm + * } * * @param array $accept Accept content header application/json|text/plain */ @@ -62,15 +62,13 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\NodeDeleteNotFoundException * @throws \Docker\API\Exception\NodeDeleteInternalServerErrorException * @throws \Docker\API\Exception\NodeDeleteServiceUnavailableException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/NodeInspect.php b/src/Endpoint/NodeInspect.php index 76ee4f8e..a171e8d3 100644 --- a/src/Endpoint/NodeInspect.php +++ b/src/Endpoint/NodeInspect.php @@ -45,15 +45,13 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\NodeInspectNotFoundException * @throws \Docker\API\Exception\NodeInspectInternalServerErrorException * @throws \Docker\API\Exception\NodeInspectServiceUnavailableException * * @return \Docker\API\Model\Node|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/NodeList.php b/src/Endpoint/NodeList.php index af593042..0f7a60ea 100644 --- a/src/Endpoint/NodeList.php +++ b/src/Endpoint/NodeList.php @@ -12,7 +12,7 @@ class NodeList extends \Docker\API\Runtime\Client\BaseEndpoint implements \Docke /** * @param array $queryParameters { * - * @var string $filters Filters to process on the nodes list, encoded as JSON (a `map[string][]string`). + * @var string $filters Filters to process on the nodes list, encoded as JSON (a `map[string][]string`). * * Available filters: * - `id=` @@ -68,14 +68,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\NodeListInternalServerErrorException * @throws \Docker\API\Exception\NodeListServiceUnavailableException * * @return \Docker\API\Model\Node[]|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/NodeUpdate.php b/src/Endpoint/NodeUpdate.php index a07c5399..d86f683f 100644 --- a/src/Endpoint/NodeUpdate.php +++ b/src/Endpoint/NodeUpdate.php @@ -14,14 +14,14 @@ class NodeUpdate extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc * @param string $id The ID of the node * @param array $queryParameters { * - * @var int $version The version number of the node object being updated. This is required - * to avoid conflicting writes. + * @var int $version The version number of the node object being updated. This is required + * to avoid conflicting writes. * * } * * @param array $accept Accept content header application/json|text/plain */ - public function __construct(string $id, ?\Docker\API\Model\NodeSpec $requestBody = null, array $queryParameters = [], array $accept = []) + public function __construct(string $id, \Docker\API\Model\NodeSpec $requestBody = null, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->body = $requestBody; @@ -72,8 +72,6 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\NodeUpdateBadRequestException * @throws \Docker\API\Exception\NodeUpdateNotFoundException * @throws \Docker\API\Exception\NodeUpdateInternalServerErrorException @@ -81,7 +79,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/PluginCreate.php b/src/Endpoint/PluginCreate.php index 3bc7bfe0..7f3e7ec8 100644 --- a/src/Endpoint/PluginCreate.php +++ b/src/Endpoint/PluginCreate.php @@ -13,8 +13,8 @@ class PluginCreate extends \Docker\API\Runtime\Client\BaseEndpoint implements \D * @param string|resource|\Psr\Http\Message\StreamInterface|null $requestBody * @param array $queryParameters { * - * @var string $name The name of the plugin. The `:latest` tag is optional, and is the - * default if omitted. + * @var string $name The name of the plugin. The `:latest` tag is optional, and is the + * default if omitted. * * } * @@ -67,13 +67,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\PluginCreateInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/PluginDelete.php b/src/Endpoint/PluginDelete.php index 9594aac9..8314a0ee 100644 --- a/src/Endpoint/PluginDelete.php +++ b/src/Endpoint/PluginDelete.php @@ -15,8 +15,8 @@ class PluginDelete extends \Docker\API\Runtime\Client\BaseEndpoint implements \D * default if omitted. * @param array $queryParameters { * - * @var bool $force Disable the plugin before removing. This may result in issues if the - * plugin is in use by a container. + * @var bool $force Disable the plugin before removing. This may result in issues if the + * plugin is in use by a container. * * } * @@ -65,14 +65,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\PluginDeleteNotFoundException * @throws \Docker\API\Exception\PluginDeleteInternalServerErrorException * * @return \Docker\API\Model\Plugin|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/PluginDisable.php b/src/Endpoint/PluginDisable.php index 0fb3afe7..39d90085 100644 --- a/src/Endpoint/PluginDisable.php +++ b/src/Endpoint/PluginDisable.php @@ -46,14 +46,12 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\PluginDisableNotFoundException * @throws \Docker\API\Exception\PluginDisableInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/PluginEnable.php b/src/Endpoint/PluginEnable.php index 57c85a59..56c4c20f 100644 --- a/src/Endpoint/PluginEnable.php +++ b/src/Endpoint/PluginEnable.php @@ -15,8 +15,8 @@ class PluginEnable extends \Docker\API\Runtime\Client\BaseEndpoint implements \D * default if omitted. * @param array $queryParameters { * - * @var int $timeout Set the HTTP client timeout (in seconds) - * } + * @var int $timeout Set the HTTP client timeout (in seconds) + * } * * @param array $accept Accept content header application/json|text/plain */ @@ -63,14 +63,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\PluginEnableNotFoundException * @throws \Docker\API\Exception\PluginEnableInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/PluginInspect.php b/src/Endpoint/PluginInspect.php index 6cfddfe4..b420985d 100644 --- a/src/Endpoint/PluginInspect.php +++ b/src/Endpoint/PluginInspect.php @@ -46,14 +46,12 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\PluginInspectNotFoundException * @throws \Docker\API\Exception\PluginInspectInternalServerErrorException * * @return \Docker\API\Model\Plugin|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/PluginList.php b/src/Endpoint/PluginList.php index fdf663a7..5e80182b 100644 --- a/src/Endpoint/PluginList.php +++ b/src/Endpoint/PluginList.php @@ -13,8 +13,8 @@ class PluginList extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc * * @param array $queryParameters { * - * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to - * process on the plugin list. + * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to + * process on the plugin list. * * Available filters: * @@ -60,13 +60,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\PluginListInternalServerErrorException * * @return \Docker\API\Model\Plugin[]|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/PluginPull.php b/src/Endpoint/PluginPull.php index 85acb882..dd98cbe6 100644 --- a/src/Endpoint/PluginPull.php +++ b/src/Endpoint/PluginPull.php @@ -15,10 +15,10 @@ class PluginPull extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc * @param \Docker\API\Model\PluginsPullPostBodyItem[]|null $requestBody * @param array $queryParameters { * - * @var string $remote Remote reference for plugin to install. + * @var string $remote Remote reference for plugin to install. * * The `:latest` tag is optional, and is used as the default if omitted. - * @var string $name Local name for the pulled plugin. + * @var string $name Local name for the pulled plugin. * * The `:latest` tag is optional, and is used as the default if omitted. * @@ -26,15 +26,15 @@ class PluginPull extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc * * @param array $headerParameters { * - * @var string $X-Registry-Auth A base64url-encoded auth configuration to use when pulling a plugin - * from a registry. + * @var string $X-Registry-Auth A base64url-encoded auth configuration to use when pulling a plugin + * from a registry. * * Refer to the [authentication section](#section/Authentication) for * details. * * } */ - public function __construct(?array $requestBody = null, array $queryParameters = [], array $headerParameters = []) + public function __construct(array $requestBody = null, array $queryParameters = [], array $headerParameters = []) { $this->body = $requestBody; $this->queryParameters = $queryParameters; @@ -92,13 +92,11 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\PluginPullInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/PluginPush.php b/src/Endpoint/PluginPush.php index 8032051e..aef377ac 100644 --- a/src/Endpoint/PluginPush.php +++ b/src/Endpoint/PluginPush.php @@ -48,14 +48,12 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\PluginPushNotFoundException * @throws \Docker\API\Exception\PluginPushInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/PluginSet.php b/src/Endpoint/PluginSet.php index 0edefad5..cc0e7bf2 100644 --- a/src/Endpoint/PluginSet.php +++ b/src/Endpoint/PluginSet.php @@ -16,7 +16,7 @@ class PluginSet extends \Docker\API\Runtime\Client\BaseEndpoint implements \Dock * @param array[]|null $requestBody * @param array $accept Accept content header application/json|text/plain */ - public function __construct(string $name, ?array $requestBody = null, array $accept = []) + public function __construct(string $name, array $requestBody = null, array $accept = []) { $this->name = $name; $this->body = $requestBody; @@ -52,14 +52,12 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\PluginSetNotFoundException * @throws \Docker\API\Exception\PluginSetInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/PluginUpgrade.php b/src/Endpoint/PluginUpgrade.php index a0bf2605..22d35228 100644 --- a/src/Endpoint/PluginUpgrade.php +++ b/src/Endpoint/PluginUpgrade.php @@ -16,7 +16,7 @@ class PluginUpgrade extends \Docker\API\Runtime\Client\BaseEndpoint implements \ * @param \Docker\API\Model\PluginsNameUpgradePostBodyItem[]|null $requestBody * @param array $queryParameters { * - * @var string $remote Remote reference to upgrade to. + * @var string $remote Remote reference to upgrade to. * * The `:latest` tag is optional, and is used as the default if omitted. * @@ -24,8 +24,8 @@ class PluginUpgrade extends \Docker\API\Runtime\Client\BaseEndpoint implements \ * * @param array $headerParameters { * - * @var string $X-Registry-Auth A base64url-encoded auth configuration to use when pulling a plugin - * from a registry. + * @var string $X-Registry-Auth A base64url-encoded auth configuration to use when pulling a plugin + * from a registry. * * Refer to the [authentication section](#section/Authentication) for * details. @@ -34,7 +34,7 @@ class PluginUpgrade extends \Docker\API\Runtime\Client\BaseEndpoint implements \ * * @param array $accept Accept content header application/json|text/plain */ - public function __construct(string $name, ?array $requestBody = null, array $queryParameters = [], array $headerParameters = [], array $accept = []) + public function __construct(string $name, array $requestBody = null, array $queryParameters = [], array $headerParameters = [], array $accept = []) { $this->name = $name; $this->body = $requestBody; @@ -97,14 +97,12 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\PluginUpgradeNotFoundException * @throws \Docker\API\Exception\PluginUpgradeInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/PutContainerArchive.php b/src/Endpoint/PutContainerArchive.php index 5065456f..1170e0f4 100644 --- a/src/Endpoint/PutContainerArchive.php +++ b/src/Endpoint/PutContainerArchive.php @@ -17,12 +17,12 @@ class PutContainerArchive extends \Docker\API\Runtime\Client\BaseEndpoint implem * @param string|resource|\Psr\Http\Message\StreamInterface|null $requestBody * @param array $queryParameters { * - * @var string $path path to a directory in the container to extract the archive’s contents into - * @var string $noOverwriteDirNonDir if `1`, `true`, or `True` then it will be an error if unpacking the - * given content would cause an existing directory to be replaced with - * a non-directory and vice versa - * @var string $copyUIDGID If `1`, `true`, then it will copy UID/GID maps to the dest file or - * dir + * @var string $path path to a directory in the container to extract the archive’s contents into + * @var string $noOverwriteDirNonDir if `1`, `true`, or `True` then it will be an error if unpacking the + * given content would cause an existing directory to be replaced with + * a non-directory and vice versa + * @var string $copyUIDGID If `1`, `true`, then it will copy UID/GID maps to the dest file or + * dir * * } * @@ -81,8 +81,6 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\PutContainerArchiveBadRequestException * @throws \Docker\API\Exception\PutContainerArchiveForbiddenException * @throws \Docker\API\Exception\PutContainerArchiveNotFoundException @@ -90,7 +88,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SecretCreate.php b/src/Endpoint/SecretCreate.php index 4ad2fbd1..34119489 100644 --- a/src/Endpoint/SecretCreate.php +++ b/src/Endpoint/SecretCreate.php @@ -8,7 +8,7 @@ class SecretCreate extends \Docker\API\Runtime\Client\BaseEndpoint implements \D { use \Docker\API\Runtime\Client\EndpointTrait; - public function __construct(?\Docker\API\Model\SecretsCreatePostBody $requestBody = null) + public function __construct(\Docker\API\Model\SecretsCreatePostBody $requestBody = null) { $this->body = $requestBody; } @@ -38,15 +38,13 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\SecretCreateConflictException * @throws \Docker\API\Exception\SecretCreateInternalServerErrorException * @throws \Docker\API\Exception\SecretCreateServiceUnavailableException * * @return \Docker\API\Model\IdResponse|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SecretDelete.php b/src/Endpoint/SecretDelete.php index 9ee962d8..021dffd1 100644 --- a/src/Endpoint/SecretDelete.php +++ b/src/Endpoint/SecretDelete.php @@ -38,15 +38,13 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\SecretDeleteNotFoundException * @throws \Docker\API\Exception\SecretDeleteInternalServerErrorException * @throws \Docker\API\Exception\SecretDeleteServiceUnavailableException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SecretInspect.php b/src/Endpoint/SecretInspect.php index ce3848fa..146e4641 100644 --- a/src/Endpoint/SecretInspect.php +++ b/src/Endpoint/SecretInspect.php @@ -38,15 +38,13 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\SecretInspectNotFoundException * @throws \Docker\API\Exception\SecretInspectInternalServerErrorException * @throws \Docker\API\Exception\SecretInspectServiceUnavailableException * * @return \Docker\API\Model\Secret|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SecretList.php b/src/Endpoint/SecretList.php index c832c6ac..cc1e0c58 100644 --- a/src/Endpoint/SecretList.php +++ b/src/Endpoint/SecretList.php @@ -11,8 +11,8 @@ class SecretList extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc /** * @param array $queryParameters { * - * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to - * process on the secrets list. + * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to + * process on the secrets list. * * Available filters: * @@ -60,14 +60,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\SecretListInternalServerErrorException * @throws \Docker\API\Exception\SecretListServiceUnavailableException * * @return \Docker\API\Model\Secret[]|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SecretUpdate.php b/src/Endpoint/SecretUpdate.php index a296226b..076f7ba1 100644 --- a/src/Endpoint/SecretUpdate.php +++ b/src/Endpoint/SecretUpdate.php @@ -14,14 +14,14 @@ class SecretUpdate extends \Docker\API\Runtime\Client\BaseEndpoint implements \D * @param string $id The ID or name of the secret * @param array $queryParameters { * - * @var int $version The version number of the secret object being updated. This is - * required to avoid conflicting writes. + * @var int $version The version number of the secret object being updated. This is + * required to avoid conflicting writes. * * } * * @param array $accept Accept content header application/json|text/plain */ - public function __construct(string $id, ?\Docker\API\Model\SecretSpec $requestBody = null, array $queryParameters = [], array $accept = []) + public function __construct(string $id, \Docker\API\Model\SecretSpec $requestBody = null, array $queryParameters = [], array $accept = []) { $this->id = $id; $this->body = $requestBody; @@ -72,8 +72,6 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\SecretUpdateBadRequestException * @throws \Docker\API\Exception\SecretUpdateNotFoundException * @throws \Docker\API\Exception\SecretUpdateInternalServerErrorException @@ -81,7 +79,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ServiceCreate.php b/src/Endpoint/ServiceCreate.php index 88e1e8fc..fea2e6ea 100644 --- a/src/Endpoint/ServiceCreate.php +++ b/src/Endpoint/ServiceCreate.php @@ -11,15 +11,15 @@ class ServiceCreate extends \Docker\API\Runtime\Client\BaseEndpoint implements \ /** * @param array $headerParameters { * - * @var string $X-Registry-Auth A base64url-encoded auth configuration for pulling from private - * registries. + * @var string $X-Registry-Auth A base64url-encoded auth configuration for pulling from private + * registries. * * Refer to the [authentication section](#section/Authentication) for * details. * * } */ - public function __construct(?\Docker\API\Model\ServicesCreatePostBody $requestBody = null, array $headerParameters = []) + public function __construct(\Docker\API\Model\ServicesCreatePostBody $requestBody = null, array $headerParameters = []) { $this->body = $requestBody; $this->headerParameters = $headerParameters; @@ -61,8 +61,6 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ServiceCreateBadRequestException * @throws \Docker\API\Exception\ServiceCreateForbiddenException * @throws \Docker\API\Exception\ServiceCreateConflictException @@ -71,7 +69,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * * @return \Docker\API\Model\ServicesCreatePostResponse201|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ServiceDelete.php b/src/Endpoint/ServiceDelete.php index abeff491..7cad2985 100644 --- a/src/Endpoint/ServiceDelete.php +++ b/src/Endpoint/ServiceDelete.php @@ -45,15 +45,13 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ServiceDeleteNotFoundException * @throws \Docker\API\Exception\ServiceDeleteInternalServerErrorException * @throws \Docker\API\Exception\ServiceDeleteServiceUnavailableException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ServiceInspect.php b/src/Endpoint/ServiceInspect.php index 45a7729b..0d5b317c 100644 --- a/src/Endpoint/ServiceInspect.php +++ b/src/Endpoint/ServiceInspect.php @@ -14,8 +14,8 @@ class ServiceInspect extends \Docker\API\Runtime\Client\BaseEndpoint implements * @param string $id ID or name of service * @param array $queryParameters { * - * @var bool $insertDefaults Fill empty fields with default values. - * } + * @var bool $insertDefaults Fill empty fields with default values. + * } * * @param array $accept Accept content header application/json|text/plain */ @@ -62,15 +62,13 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ServiceInspectNotFoundException * @throws \Docker\API\Exception\ServiceInspectInternalServerErrorException * @throws \Docker\API\Exception\ServiceInspectServiceUnavailableException * * @return \Docker\API\Model\Service|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ServiceList.php b/src/Endpoint/ServiceList.php index 565c8667..d5ce9509 100644 --- a/src/Endpoint/ServiceList.php +++ b/src/Endpoint/ServiceList.php @@ -12,8 +12,8 @@ class ServiceList extends \Docker\API\Runtime\Client\BaseEndpoint implements \Do /** * @param array $queryParameters { * - * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to - * process on the services list. + * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to + * process on the services list. * * Available filters: * @@ -21,7 +21,7 @@ class ServiceList extends \Docker\API\Runtime\Client\BaseEndpoint implements \Do * - `label=` * - `mode=["replicated"|"global"]` * - `name=` - * @var bool $status Include service status, with count of running and desired tasks. + * @var bool $status Include service status, with count of running and desired tasks. * * } * @@ -70,14 +70,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ServiceListInternalServerErrorException * @throws \Docker\API\Exception\ServiceListServiceUnavailableException * * @return \Docker\API\Model\Service[]|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ServiceLogs.php b/src/Endpoint/ServiceLogs.php index eb4abe84..275cc032 100644 --- a/src/Endpoint/ServiceLogs.php +++ b/src/Endpoint/ServiceLogs.php @@ -20,14 +20,14 @@ class ServiceLogs extends \Docker\API\Runtime\Client\BaseEndpoint implements \Do * @param string $id ID or name of the service * @param array $queryParameters { * - * @var bool $details show service context and extra details provided to logs - * @var bool $follow keep connection after returning logs - * @var bool $stdout Return logs from `stdout` - * @var bool $stderr Return logs from `stderr` - * @var int $since Only return logs since this time, as a UNIX timestamp - * @var bool $timestamps Add timestamps to every log line - * @var string $tail Only return this number of log lines from the end of the logs. - * Specify as an integer or `all` to output all log lines. + * @var bool $details show service context and extra details provided to logs + * @var bool $follow keep connection after returning logs + * @var bool $stdout Return logs from `stdout` + * @var bool $stderr Return logs from `stderr` + * @var int $since Only return logs since this time, as a UNIX timestamp + * @var bool $timestamps Add timestamps to every log line + * @var string $tail Only return this number of log lines from the end of the logs. + * Specify as an integer or `all` to output all log lines. * * } * @@ -82,15 +82,13 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ServiceLogsNotFoundException * @throws \Docker\API\Exception\ServiceLogsInternalServerErrorException * @throws \Docker\API\Exception\ServiceLogsServiceUnavailableException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/ServiceUpdate.php b/src/Endpoint/ServiceUpdate.php index 1acc3315..c4dcba5b 100644 --- a/src/Endpoint/ServiceUpdate.php +++ b/src/Endpoint/ServiceUpdate.php @@ -13,30 +13,30 @@ class ServiceUpdate extends \Docker\API\Runtime\Client\BaseEndpoint implements \ * @param string $id ID or name of service * @param array $queryParameters { * - * @var int $version The version number of the service object being updated. This is - * required to avoid conflicting writes. - * This version number should be the value as currently set on the - * service *before* the update. You can find the current version by - * calling `GET /services/{id}` - * @var string $registryAuthFrom if the `X-Registry-Auth` header is not specified, this parameter - * indicates where to find registry authorization credentials - * @var string $rollback Set to this parameter to `previous` to cause a server-side rollback - * to the previous service spec. The supplied spec will be ignored in - * this case. + * @var int $version The version number of the service object being updated. This is + * required to avoid conflicting writes. + * This version number should be the value as currently set on the + * service *before* the update. You can find the current version by + * calling `GET /services/{id}` + * @var string $registryAuthFrom if the `X-Registry-Auth` header is not specified, this parameter + * indicates where to find registry authorization credentials + * @var string $rollback Set to this parameter to `previous` to cause a server-side rollback + * to the previous service spec. The supplied spec will be ignored in + * this case. * * } * * @param array $headerParameters { * - * @var string $X-Registry-Auth A base64url-encoded auth configuration for pulling from private - * registries. + * @var string $X-Registry-Auth A base64url-encoded auth configuration for pulling from private + * registries. * * Refer to the [authentication section](#section/Authentication) for * details. * * } */ - public function __construct(string $id, ?\Docker\API\Model\ServicesIdUpdatePostBody $requestBody = null, array $queryParameters = [], array $headerParameters = []) + public function __construct(string $id, \Docker\API\Model\ServicesIdUpdatePostBody $requestBody = null, array $queryParameters = [], array $headerParameters = []) { $this->id = $id; $this->body = $requestBody; @@ -93,8 +93,6 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\ServiceUpdateBadRequestException * @throws \Docker\API\Exception\ServiceUpdateNotFoundException * @throws \Docker\API\Exception\ServiceUpdateInternalServerErrorException @@ -102,7 +100,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * * @return \Docker\API\Model\ServiceUpdateResponse|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/Session.php b/src/Endpoint/Session.php index 953328de..135778fb 100644 --- a/src/Endpoint/Session.php +++ b/src/Endpoint/Session.php @@ -29,11 +29,9 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SwarmInit.php b/src/Endpoint/SwarmInit.php index 5c00548f..7365d162 100644 --- a/src/Endpoint/SwarmInit.php +++ b/src/Endpoint/SwarmInit.php @@ -12,7 +12,7 @@ class SwarmInit extends \Docker\API\Runtime\Client\BaseEndpoint implements \Dock /** * @param array $accept Accept content header application/json|text/plain */ - public function __construct(?\Docker\API\Model\SwarmInitPostBody $requestBody = null, array $accept = []) + public function __construct(\Docker\API\Model\SwarmInitPostBody $requestBody = null, array $accept = []) { $this->body = $requestBody; $this->accept = $accept; @@ -50,15 +50,13 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\SwarmInitBadRequestException * @throws \Docker\API\Exception\SwarmInitInternalServerErrorException * @throws \Docker\API\Exception\SwarmInitServiceUnavailableException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SwarmInspect.php b/src/Endpoint/SwarmInspect.php index e7224ba0..bf1896c5 100644 --- a/src/Endpoint/SwarmInspect.php +++ b/src/Endpoint/SwarmInspect.php @@ -42,15 +42,13 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\SwarmInspectNotFoundException * @throws \Docker\API\Exception\SwarmInspectInternalServerErrorException * @throws \Docker\API\Exception\SwarmInspectServiceUnavailableException * * @return \Docker\API\Model\Swarm|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SwarmJoin.php b/src/Endpoint/SwarmJoin.php index d87a24e7..79b257b4 100644 --- a/src/Endpoint/SwarmJoin.php +++ b/src/Endpoint/SwarmJoin.php @@ -12,7 +12,7 @@ class SwarmJoin extends \Docker\API\Runtime\Client\BaseEndpoint implements \Dock /** * @param array $accept Accept content header application/json|text/plain */ - public function __construct(?\Docker\API\Model\SwarmJoinPostBody $requestBody = null, array $accept = []) + public function __construct(\Docker\API\Model\SwarmJoinPostBody $requestBody = null, array $accept = []) { $this->body = $requestBody; $this->accept = $accept; @@ -50,15 +50,13 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\SwarmJoinBadRequestException * @throws \Docker\API\Exception\SwarmJoinInternalServerErrorException * @throws \Docker\API\Exception\SwarmJoinServiceUnavailableException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SwarmLeave.php b/src/Endpoint/SwarmLeave.php index cc8539ac..9bdc0f4a 100644 --- a/src/Endpoint/SwarmLeave.php +++ b/src/Endpoint/SwarmLeave.php @@ -12,8 +12,8 @@ class SwarmLeave extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc /** * @param array $queryParameters { * - * @var bool $force Force leave swarm, even if this is the last manager or that it will - * break the cluster. + * @var bool $force Force leave swarm, even if this is the last manager or that it will + * break the cluster. * * } * @@ -61,14 +61,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\SwarmLeaveInternalServerErrorException * @throws \Docker\API\Exception\SwarmLeaveServiceUnavailableException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SwarmUnlock.php b/src/Endpoint/SwarmUnlock.php index 262de22c..6a38fb35 100644 --- a/src/Endpoint/SwarmUnlock.php +++ b/src/Endpoint/SwarmUnlock.php @@ -8,7 +8,7 @@ class SwarmUnlock extends \Docker\API\Runtime\Client\BaseEndpoint implements \Do { use \Docker\API\Runtime\Client\EndpointTrait; - public function __construct(?\Docker\API\Model\SwarmUnlockPostBody $requestBody = null) + public function __construct(\Docker\API\Model\SwarmUnlockPostBody $requestBody = null) { $this->body = $requestBody; } @@ -38,14 +38,12 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\SwarmUnlockInternalServerErrorException * @throws \Docker\API\Exception\SwarmUnlockServiceUnavailableException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SwarmUnlockkey.php b/src/Endpoint/SwarmUnlockkey.php index ca8b0c39..2a816f29 100644 --- a/src/Endpoint/SwarmUnlockkey.php +++ b/src/Endpoint/SwarmUnlockkey.php @@ -42,14 +42,12 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\SwarmUnlockkeyInternalServerErrorException * @throws \Docker\API\Exception\SwarmUnlockkeyServiceUnavailableException * * @return \Docker\API\Model\SwarmUnlockkeyGetJsonResponse200|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SwarmUpdate.php b/src/Endpoint/SwarmUpdate.php index 7bf0f8ea..4ee4b11a 100644 --- a/src/Endpoint/SwarmUpdate.php +++ b/src/Endpoint/SwarmUpdate.php @@ -12,16 +12,16 @@ class SwarmUpdate extends \Docker\API\Runtime\Client\BaseEndpoint implements \Do /** * @param array $queryParameters { * - * @var int $version The version number of the swarm object being updated. This is - * required to avoid conflicting writes. - * @var bool $rotateWorkerToken rotate the worker join token - * @var bool $rotateManagerToken rotate the manager join token - * @var bool $rotateManagerUnlockKey Rotate the manager unlock key. - * } + * @var int $version The version number of the swarm object being updated. This is + * required to avoid conflicting writes. + * @var bool $rotateWorkerToken rotate the worker join token + * @var bool $rotateManagerToken rotate the manager join token + * @var bool $rotateManagerUnlockKey Rotate the manager unlock key. + * } * * @param array $accept Accept content header application/json|text/plain */ - public function __construct(?\Docker\API\Model\SwarmSpec $requestBody = null, array $queryParameters = [], array $accept = []) + public function __construct(\Docker\API\Model\SwarmSpec $requestBody = null, array $queryParameters = [], array $accept = []) { $this->body = $requestBody; $this->queryParameters = $queryParameters; @@ -74,15 +74,13 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\SwarmUpdateBadRequestException * @throws \Docker\API\Exception\SwarmUpdateInternalServerErrorException * @throws \Docker\API\Exception\SwarmUpdateServiceUnavailableException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SystemAuth.php b/src/Endpoint/SystemAuth.php index 840c549a..828ae0aa 100644 --- a/src/Endpoint/SystemAuth.php +++ b/src/Endpoint/SystemAuth.php @@ -12,7 +12,7 @@ class SystemAuth extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc * Validate credentials for a registry and, if available, get an identity * token for accessing the registry without password. */ - public function __construct(?\Docker\API\Model\AuthConfig $requestBody = null) + public function __construct(\Docker\API\Model\AuthConfig $requestBody = null) { $this->body = $requestBody; } @@ -42,13 +42,11 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\SystemAuthInternalServerErrorException * * @return \Docker\API\Model\AuthPostResponse200|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SystemDataUsage.php b/src/Endpoint/SystemDataUsage.php index efd5092f..26b5308e 100644 --- a/src/Endpoint/SystemDataUsage.php +++ b/src/Endpoint/SystemDataUsage.php @@ -42,13 +42,11 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\SystemDataUsageInternalServerErrorException * * @return \Docker\API\Model\SystemDfGetJsonResponse200|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SystemEvents.php b/src/Endpoint/SystemEvents.php index 48697c8c..dad9596a 100644 --- a/src/Endpoint/SystemEvents.php +++ b/src/Endpoint/SystemEvents.php @@ -35,9 +35,9 @@ class SystemEvents extends \Docker\API\Runtime\Client\BaseEndpoint implements \D * * @param array $queryParameters { * - * @var string $since show events created since this timestamp then stream new events - * @var string $until show events created until this timestamp then stop streaming - * @var string $filters A JSON encoded value of filters (a `map[string][]string`) to process on the event list. Available filters: + * @var string $since show events created since this timestamp then stream new events + * @var string $until show events created until this timestamp then stop streaming + * @var string $filters A JSON encoded value of filters (a `map[string][]string`) to process on the event list. Available filters: * * - `config=` config name or ID * - `container=` container name or ID @@ -95,14 +95,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\SystemEventsBadRequestException * @throws \Docker\API\Exception\SystemEventsInternalServerErrorException * * @return \Docker\API\Model\EventsGetResponse200|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SystemInfo.php b/src/Endpoint/SystemInfo.php index 0714d41d..ed820171 100644 --- a/src/Endpoint/SystemInfo.php +++ b/src/Endpoint/SystemInfo.php @@ -29,13 +29,11 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\SystemInfoInternalServerErrorException * * @return \Docker\API\Model\SystemInfo|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SystemPing.php b/src/Endpoint/SystemPing.php index e141d397..d3ae23cf 100644 --- a/src/Endpoint/SystemPing.php +++ b/src/Endpoint/SystemPing.php @@ -29,11 +29,9 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SystemPingHead.php b/src/Endpoint/SystemPingHead.php index 801bcfe6..9f657fe5 100644 --- a/src/Endpoint/SystemPingHead.php +++ b/src/Endpoint/SystemPingHead.php @@ -29,11 +29,9 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/SystemVersion.php b/src/Endpoint/SystemVersion.php index 79eb28aa..b8fcc3a9 100644 --- a/src/Endpoint/SystemVersion.php +++ b/src/Endpoint/SystemVersion.php @@ -29,13 +29,11 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\SystemVersionInternalServerErrorException * * @return \Docker\API\Model\SystemVersion|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/TaskInspect.php b/src/Endpoint/TaskInspect.php index 8f8956ac..fd1c5798 100644 --- a/src/Endpoint/TaskInspect.php +++ b/src/Endpoint/TaskInspect.php @@ -38,15 +38,13 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\TaskInspectNotFoundException * @throws \Docker\API\Exception\TaskInspectInternalServerErrorException * @throws \Docker\API\Exception\TaskInspectServiceUnavailableException * * @return \Docker\API\Model\Task|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/TaskList.php b/src/Endpoint/TaskList.php index d0b1805c..36feca27 100644 --- a/src/Endpoint/TaskList.php +++ b/src/Endpoint/TaskList.php @@ -11,8 +11,8 @@ class TaskList extends \Docker\API\Runtime\Client\BaseEndpoint implements \Docke /** * @param array $queryParameters { * - * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to - * process on the tasks list. + * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to + * process on the tasks list. * * Available filters: * @@ -62,14 +62,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\TaskListInternalServerErrorException * @throws \Docker\API\Exception\TaskListServiceUnavailableException * * @return \Docker\API\Model\Task[]|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/TaskLogs.php b/src/Endpoint/TaskLogs.php index 60e54342..70941d81 100644 --- a/src/Endpoint/TaskLogs.php +++ b/src/Endpoint/TaskLogs.php @@ -20,14 +20,14 @@ class TaskLogs extends \Docker\API\Runtime\Client\BaseEndpoint implements \Docke * @param string $id ID of the task * @param array $queryParameters { * - * @var bool $details show task context and extra details provided to logs - * @var bool $follow keep connection after returning logs - * @var bool $stdout Return logs from `stdout` - * @var bool $stderr Return logs from `stderr` - * @var int $since Only return logs since this time, as a UNIX timestamp - * @var bool $timestamps Add timestamps to every log line - * @var string $tail Only return this number of log lines from the end of the logs. - * Specify as an integer or `all` to output all log lines. + * @var bool $details show task context and extra details provided to logs + * @var bool $follow keep connection after returning logs + * @var bool $stdout Return logs from `stdout` + * @var bool $stderr Return logs from `stderr` + * @var int $since Only return logs since this time, as a UNIX timestamp + * @var bool $timestamps Add timestamps to every log line + * @var string $tail Only return this number of log lines from the end of the logs. + * Specify as an integer or `all` to output all log lines. * * } * @@ -82,15 +82,13 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\TaskLogsNotFoundException * @throws \Docker\API\Exception\TaskLogsInternalServerErrorException * @throws \Docker\API\Exception\TaskLogsServiceUnavailableException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/VolumeCreate.php b/src/Endpoint/VolumeCreate.php index a60a6946..4bec6478 100644 --- a/src/Endpoint/VolumeCreate.php +++ b/src/Endpoint/VolumeCreate.php @@ -8,7 +8,7 @@ class VolumeCreate extends \Docker\API\Runtime\Client\BaseEndpoint implements \D { use \Docker\API\Runtime\Client\EndpointTrait; - public function __construct(?\Docker\API\Model\VolumesCreatePostBody $requestBody = null) + public function __construct(\Docker\API\Model\VolumesCreatePostBody $requestBody = null) { $this->body = $requestBody; } @@ -38,13 +38,11 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\VolumeCreateInternalServerErrorException * * @return \Docker\API\Model\Volume|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/VolumeDelete.php b/src/Endpoint/VolumeDelete.php index 88e304e8..b05f71aa 100644 --- a/src/Endpoint/VolumeDelete.php +++ b/src/Endpoint/VolumeDelete.php @@ -16,8 +16,8 @@ class VolumeDelete extends \Docker\API\Runtime\Client\BaseEndpoint implements \D * @param string $name Volume name or ID * @param array $queryParameters { * - * @var bool $force Force the removal of the volume - * } + * @var bool $force Force the removal of the volume + * } * * @param array $accept Accept content header application/json|text/plain */ @@ -64,15 +64,13 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\VolumeDeleteNotFoundException * @throws \Docker\API\Exception\VolumeDeleteConflictException * @throws \Docker\API\Exception\VolumeDeleteInternalServerErrorException * * @return null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/VolumeInspect.php b/src/Endpoint/VolumeInspect.php index ae25bb89..3855c584 100644 --- a/src/Endpoint/VolumeInspect.php +++ b/src/Endpoint/VolumeInspect.php @@ -38,14 +38,12 @@ public function getExtraHeaders(): array } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\VolumeInspectNotFoundException * @throws \Docker\API\Exception\VolumeInspectInternalServerErrorException * * @return \Docker\API\Model\Volume|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/VolumeList.php b/src/Endpoint/VolumeList.php index 15667e0b..fb220d9b 100644 --- a/src/Endpoint/VolumeList.php +++ b/src/Endpoint/VolumeList.php @@ -11,8 +11,8 @@ class VolumeList extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc /** * @param array $queryParameters { * - * @var string $filters JSON encoded value of the filters (a `map[string][]string`) to - * process on the volumes list. Available filters: + * @var string $filters JSON encoded value of the filters (a `map[string][]string`) to + * process on the volumes list. Available filters: * * - `dangling=` When set to `true` (or `1`), returns all * volumes that are not in use by a container. When set to `false` @@ -62,13 +62,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\VolumeListInternalServerErrorException * * @return \Docker\API\Model\VolumesGetResponse200|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Endpoint/VolumePrune.php b/src/Endpoint/VolumePrune.php index 0974549e..272b5518 100644 --- a/src/Endpoint/VolumePrune.php +++ b/src/Endpoint/VolumePrune.php @@ -11,7 +11,7 @@ class VolumePrune extends \Docker\API\Runtime\Client\BaseEndpoint implements \Do /** * @param array $queryParameters { * - * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). + * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). * * Available filters: * - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune volumes with (or without, in case `label!=...` is used) the specified labels. @@ -55,13 +55,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver } /** - * {@inheritdoc} - * * @throws \Docker\API\Exception\VolumePruneInternalServerErrorException * * @return \Docker\API\Model\VolumesPrunePostResponse200|null */ - protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null) { $status = $response->getStatusCode(); $body = (string) $response->getBody(); diff --git a/src/Normalizer/AddressNormalizer.php b/src/Normalizer/AddressNormalizer.php index e2bb30bf..6d71698a 100644 --- a/src/Normalizer/AddressNormalizer.php +++ b/src/Normalizer/AddressNormalizer.php @@ -21,19 +21,16 @@ class AddressNormalizer implements DenormalizerInterface, NormalizerInterface, D use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Address' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Address' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Address' => false]; + } } diff --git a/src/Normalizer/AuthConfigNormalizer.php b/src/Normalizer/AuthConfigNormalizer.php index 52dbe9d8..42ee6469 100644 --- a/src/Normalizer/AuthConfigNormalizer.php +++ b/src/Normalizer/AuthConfigNormalizer.php @@ -21,19 +21,16 @@ class AuthConfigNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\AuthConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\AuthConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -105,4 +102,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\AuthConfig' => false]; + } } diff --git a/src/Normalizer/AuthPostResponse200Normalizer.php b/src/Normalizer/AuthPostResponse200Normalizer.php index e10cf00a..03ae1e26 100644 --- a/src/Normalizer/AuthPostResponse200Normalizer.php +++ b/src/Normalizer/AuthPostResponse200Normalizer.php @@ -21,19 +21,16 @@ class AuthPostResponse200Normalizer implements DenormalizerInterface, Normalizer use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\AuthPostResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\AuthPostResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -85,4 +82,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\AuthPostResponse200' => false]; + } } diff --git a/src/Normalizer/BuildCacheNormalizer.php b/src/Normalizer/BuildCacheNormalizer.php index 2a69469e..d2008bb2 100644 --- a/src/Normalizer/BuildCacheNormalizer.php +++ b/src/Normalizer/BuildCacheNormalizer.php @@ -21,19 +21,16 @@ class BuildCacheNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\BuildCache' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\BuildCache' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -159,4 +156,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\BuildCache' => false]; + } } diff --git a/src/Normalizer/BuildInfoNormalizer.php b/src/Normalizer/BuildInfoNormalizer.php index a942645c..142cb1b6 100644 --- a/src/Normalizer/BuildInfoNormalizer.php +++ b/src/Normalizer/BuildInfoNormalizer.php @@ -21,19 +21,16 @@ class BuildInfoNormalizer implements DenormalizerInterface, NormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\BuildInfo' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\BuildInfo' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -119,7 +116,7 @@ public function normalize($object, $format = null, array $context = []) $data['error'] = $object->getError(); } if ($object->isInitialized('errorDetail') && null !== $object->getErrorDetail()) { - $data['errorDetail'] = new \ArrayObject($this->normalizer->normalize($object->getErrorDetail(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['errorDetail'] = $this->normalizer->normalize($object->getErrorDetail(), 'json', $context); } if ($object->isInitialized('status') && null !== $object->getStatus()) { $data['status'] = $object->getStatus(); @@ -128,10 +125,10 @@ public function normalize($object, $format = null, array $context = []) $data['progress'] = $object->getProgress(); } if ($object->isInitialized('progressDetail') && null !== $object->getProgressDetail()) { - $data['progressDetail'] = new \ArrayObject($this->normalizer->normalize($object->getProgressDetail(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['progressDetail'] = $this->normalizer->normalize($object->getProgressDetail(), 'json', $context); } if ($object->isInitialized('aux') && null !== $object->getAux()) { - $data['aux'] = new \ArrayObject($this->normalizer->normalize($object->getAux(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['aux'] = $this->normalizer->normalize($object->getAux(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -141,4 +138,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\BuildInfo' => false]; + } } diff --git a/src/Normalizer/BuildPrunePostResponse200Normalizer.php b/src/Normalizer/BuildPrunePostResponse200Normalizer.php index a4406b4d..33ee8ca5 100644 --- a/src/Normalizer/BuildPrunePostResponse200Normalizer.php +++ b/src/Normalizer/BuildPrunePostResponse200Normalizer.php @@ -21,19 +21,16 @@ class BuildPrunePostResponse200Normalizer implements DenormalizerInterface, Norm use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\BuildPrunePostResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\BuildPrunePostResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -95,4 +92,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\BuildPrunePostResponse200' => false]; + } } diff --git a/src/Normalizer/ClusterInfoNormalizer.php b/src/Normalizer/ClusterInfoNormalizer.php index 87e848eb..d14eab55 100644 --- a/src/Normalizer/ClusterInfoNormalizer.php +++ b/src/Normalizer/ClusterInfoNormalizer.php @@ -21,19 +21,16 @@ class ClusterInfoNormalizer implements DenormalizerInterface, NormalizerInterfac use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ClusterInfo' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ClusterInfo' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -129,7 +126,7 @@ public function normalize($object, $format = null, array $context = []) $data['ID'] = $object->getID(); } if ($object->isInitialized('version') && null !== $object->getVersion()) { - $data['Version'] = new \ArrayObject($this->normalizer->normalize($object->getVersion(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Version'] = $this->normalizer->normalize($object->getVersion(), 'json', $context); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { $data['CreatedAt'] = $object->getCreatedAt(); @@ -138,10 +135,10 @@ public function normalize($object, $format = null, array $context = []) $data['UpdatedAt'] = $object->getUpdatedAt(); } if ($object->isInitialized('spec') && null !== $object->getSpec()) { - $data['Spec'] = new \ArrayObject($this->normalizer->normalize($object->getSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Spec'] = $this->normalizer->normalize($object->getSpec(), 'json', $context); } if ($object->isInitialized('tLSInfo') && null !== $object->getTLSInfo()) { - $data['TLSInfo'] = new \ArrayObject($this->normalizer->normalize($object->getTLSInfo(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['TLSInfo'] = $this->normalizer->normalize($object->getTLSInfo(), 'json', $context); } if ($object->isInitialized('rootRotationInProgress') && null !== $object->getRootRotationInProgress()) { $data['RootRotationInProgress'] = $object->getRootRotationInProgress(); @@ -167,4 +164,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ClusterInfo' => false]; + } } diff --git a/src/Normalizer/CommitNormalizer.php b/src/Normalizer/CommitNormalizer.php index 5b51e237..e140d862 100644 --- a/src/Normalizer/CommitNormalizer.php +++ b/src/Normalizer/CommitNormalizer.php @@ -21,19 +21,16 @@ class CommitNormalizer implements DenormalizerInterface, NormalizerInterface, De use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Commit' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Commit' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Commit' => false]; + } } diff --git a/src/Normalizer/ConfigNormalizer.php b/src/Normalizer/ConfigNormalizer.php index 24c7618b..f30c436e 100644 --- a/src/Normalizer/ConfigNormalizer.php +++ b/src/Normalizer/ConfigNormalizer.php @@ -21,19 +21,16 @@ class ConfigNormalizer implements DenormalizerInterface, NormalizerInterface, De use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Config' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Config' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -95,7 +92,7 @@ public function normalize($object, $format = null, array $context = []) $data['ID'] = $object->getID(); } if ($object->isInitialized('version') && null !== $object->getVersion()) { - $data['Version'] = new \ArrayObject($this->normalizer->normalize($object->getVersion(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Version'] = $this->normalizer->normalize($object->getVersion(), 'json', $context); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { $data['CreatedAt'] = $object->getCreatedAt(); @@ -104,7 +101,7 @@ public function normalize($object, $format = null, array $context = []) $data['UpdatedAt'] = $object->getUpdatedAt(); } if ($object->isInitialized('spec') && null !== $object->getSpec()) { - $data['Spec'] = new \ArrayObject($this->normalizer->normalize($object->getSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Spec'] = $this->normalizer->normalize($object->getSpec(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -114,4 +111,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Config' => false]; + } } diff --git a/src/Normalizer/ConfigSpecNormalizer.php b/src/Normalizer/ConfigSpecNormalizer.php index 0b0bcd89..ba9187ab 100644 --- a/src/Normalizer/ConfigSpecNormalizer.php +++ b/src/Normalizer/ConfigSpecNormalizer.php @@ -21,19 +21,16 @@ class ConfigSpecNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ConfigSpec' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ConfigSpec' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -93,7 +90,7 @@ public function normalize($object, $format = null, array $context = []) $data['Name'] = $object->getName(); } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getLabels() as $key => $value) { $values[$key] = $value; } @@ -103,7 +100,7 @@ public function normalize($object, $format = null, array $context = []) $data['Data'] = $object->getData(); } if ($object->isInitialized('templating') && null !== $object->getTemplating()) { - $data['Templating'] = new \ArrayObject($this->normalizer->normalize($object->getTemplating(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Templating'] = $this->normalizer->normalize($object->getTemplating(), 'json', $context); } foreach ($object as $key_1 => $value_1) { if (preg_match('/.*/', (string) $key_1)) { @@ -113,4 +110,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ConfigSpec' => false]; + } } diff --git a/src/Normalizer/ConfigsCreatePostBodyNormalizer.php b/src/Normalizer/ConfigsCreatePostBodyNormalizer.php index a326cb52..67623b05 100644 --- a/src/Normalizer/ConfigsCreatePostBodyNormalizer.php +++ b/src/Normalizer/ConfigsCreatePostBodyNormalizer.php @@ -21,19 +21,16 @@ class ConfigsCreatePostBodyNormalizer implements DenormalizerInterface, Normaliz use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ConfigsCreatePostBody' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ConfigsCreatePostBody' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -93,7 +90,7 @@ public function normalize($object, $format = null, array $context = []) $data['Name'] = $object->getName(); } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getLabels() as $key => $value) { $values[$key] = $value; } @@ -103,7 +100,7 @@ public function normalize($object, $format = null, array $context = []) $data['Data'] = $object->getData(); } if ($object->isInitialized('templating') && null !== $object->getTemplating()) { - $data['Templating'] = new \ArrayObject($this->normalizer->normalize($object->getTemplating(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Templating'] = $this->normalizer->normalize($object->getTemplating(), 'json', $context); } foreach ($object as $key_1 => $value_1) { if (preg_match('/.*/', (string) $key_1)) { @@ -113,4 +110,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ConfigsCreatePostBody' => false]; + } } diff --git a/src/Normalizer/ContainerConfigExposedPortsItemNormalizer.php b/src/Normalizer/ContainerConfigExposedPortsItemNormalizer.php index 44a80a59..3f06739e 100644 --- a/src/Normalizer/ContainerConfigExposedPortsItemNormalizer.php +++ b/src/Normalizer/ContainerConfigExposedPortsItemNormalizer.php @@ -21,19 +21,16 @@ class ContainerConfigExposedPortsItemNormalizer implements DenormalizerInterface use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainerConfigExposedPortsItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainerConfigExposedPortsItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -69,4 +66,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainerConfigExposedPortsItem' => false]; + } } diff --git a/src/Normalizer/ContainerConfigNormalizer.php b/src/Normalizer/ContainerConfigNormalizer.php index cdda7f85..26a6e779 100644 --- a/src/Normalizer/ContainerConfigNormalizer.php +++ b/src/Normalizer/ContainerConfigNormalizer.php @@ -21,19 +21,16 @@ class ContainerConfigNormalizer implements DenormalizerInterface, NormalizerInte use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainerConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainerConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -262,9 +259,9 @@ public function normalize($object, $format = null, array $context = []) $data['AttachStderr'] = $object->getAttachStderr(); } if ($object->isInitialized('exposedPorts') && null !== $object->getExposedPorts()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getExposedPorts() as $key => $value) { - $values[$key] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[$key] = $this->normalizer->normalize($value, 'json', $context); } $data['ExposedPorts'] = $values; } @@ -292,7 +289,7 @@ public function normalize($object, $format = null, array $context = []) $data['Cmd'] = $values_2; } if ($object->isInitialized('healthcheck') && null !== $object->getHealthcheck()) { - $data['Healthcheck'] = new \ArrayObject($this->normalizer->normalize($object->getHealthcheck(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Healthcheck'] = $this->normalizer->normalize($object->getHealthcheck(), 'json', $context); } if ($object->isInitialized('argsEscaped') && null !== $object->getArgsEscaped()) { $data['ArgsEscaped'] = $object->getArgsEscaped(); @@ -301,9 +298,9 @@ public function normalize($object, $format = null, array $context = []) $data['Image'] = $object->getImage(); } if ($object->isInitialized('volumes') && null !== $object->getVolumes()) { - $values_3 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_3 = []; foreach ($object->getVolumes() as $key_1 => $value_3) { - $values_3[$key_1] = new \ArrayObject($this->normalizer->normalize($value_3, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_3[$key_1] = $this->normalizer->normalize($value_3, 'json', $context); } $data['Volumes'] = $values_3; } @@ -331,7 +328,7 @@ public function normalize($object, $format = null, array $context = []) $data['OnBuild'] = $values_5; } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values_6 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_6 = []; foreach ($object->getLabels() as $key_2 => $value_6) { $values_6[$key_2] = $value_6; } @@ -358,4 +355,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainerConfig' => false]; + } } diff --git a/src/Normalizer/ContainerConfigVolumesItemNormalizer.php b/src/Normalizer/ContainerConfigVolumesItemNormalizer.php index 530bdb66..256cf301 100644 --- a/src/Normalizer/ContainerConfigVolumesItemNormalizer.php +++ b/src/Normalizer/ContainerConfigVolumesItemNormalizer.php @@ -21,19 +21,16 @@ class ContainerConfigVolumesItemNormalizer implements DenormalizerInterface, Nor use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainerConfigVolumesItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainerConfigVolumesItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -69,4 +66,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainerConfigVolumesItem' => false]; + } } diff --git a/src/Normalizer/ContainerStateNormalizer.php b/src/Normalizer/ContainerStateNormalizer.php index 18540f76..518f3336 100644 --- a/src/Normalizer/ContainerStateNormalizer.php +++ b/src/Normalizer/ContainerStateNormalizer.php @@ -21,19 +21,16 @@ class ContainerStateNormalizer implements DenormalizerInterface, NormalizerInter use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainerState' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainerState' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -167,7 +164,7 @@ public function normalize($object, $format = null, array $context = []) $data['FinishedAt'] = $object->getFinishedAt(); } if ($object->isInitialized('health') && null !== $object->getHealth()) { - $data['Health'] = new \ArrayObject($this->normalizer->normalize($object->getHealth(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Health'] = $this->normalizer->normalize($object->getHealth(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -177,4 +174,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainerState' => false]; + } } diff --git a/src/Normalizer/ContainerSummaryItemHostConfigNormalizer.php b/src/Normalizer/ContainerSummaryItemHostConfigNormalizer.php index bcc0f090..6d56a50a 100644 --- a/src/Normalizer/ContainerSummaryItemHostConfigNormalizer.php +++ b/src/Normalizer/ContainerSummaryItemHostConfigNormalizer.php @@ -21,19 +21,16 @@ class ContainerSummaryItemHostConfigNormalizer implements DenormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainerSummaryItemHostConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainerSummaryItemHostConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -78,4 +75,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainerSummaryItemHostConfig' => false]; + } } diff --git a/src/Normalizer/ContainerSummaryItemNetworkSettingsNormalizer.php b/src/Normalizer/ContainerSummaryItemNetworkSettingsNormalizer.php index 284f9892..63a63b68 100644 --- a/src/Normalizer/ContainerSummaryItemNetworkSettingsNormalizer.php +++ b/src/Normalizer/ContainerSummaryItemNetworkSettingsNormalizer.php @@ -21,19 +21,16 @@ class ContainerSummaryItemNetworkSettingsNormalizer implements DenormalizerInter use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainerSummaryItemNetworkSettings' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainerSummaryItemNetworkSettings' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -72,9 +69,9 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('networks') && null !== $object->getNetworks()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getNetworks() as $key => $value) { - $values[$key] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[$key] = $this->normalizer->normalize($value, 'json', $context); } $data['Networks'] = $values; } @@ -86,4 +83,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainerSummaryItemNetworkSettings' => false]; + } } diff --git a/src/Normalizer/ContainerSummaryItemNormalizer.php b/src/Normalizer/ContainerSummaryItemNormalizer.php index 6abeca5e..2eb54a75 100644 --- a/src/Normalizer/ContainerSummaryItemNormalizer.php +++ b/src/Normalizer/ContainerSummaryItemNormalizer.php @@ -21,19 +21,16 @@ class ContainerSummaryItemNormalizer implements DenormalizerInterface, Normalize use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainerSummaryItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainerSummaryItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -192,7 +189,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('ports') && null !== $object->getPorts()) { $values_1 = []; foreach ($object->getPorts() as $value_1) { - $values_1[] = new \ArrayObject($this->normalizer->normalize($value_1, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); } $data['Ports'] = $values_1; } @@ -203,7 +200,7 @@ public function normalize($object, $format = null, array $context = []) $data['SizeRootFs'] = $object->getSizeRootFs(); } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values_2 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_2 = []; foreach ($object->getLabels() as $key => $value_2) { $values_2[$key] = $value_2; } @@ -216,15 +213,15 @@ public function normalize($object, $format = null, array $context = []) $data['Status'] = $object->getStatus(); } if ($object->isInitialized('hostConfig') && null !== $object->getHostConfig()) { - $data['HostConfig'] = new \ArrayObject($this->normalizer->normalize($object->getHostConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['HostConfig'] = $this->normalizer->normalize($object->getHostConfig(), 'json', $context); } if ($object->isInitialized('networkSettings') && null !== $object->getNetworkSettings()) { - $data['NetworkSettings'] = new \ArrayObject($this->normalizer->normalize($object->getNetworkSettings(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['NetworkSettings'] = $this->normalizer->normalize($object->getNetworkSettings(), 'json', $context); } if ($object->isInitialized('mounts') && null !== $object->getMounts()) { $values_3 = []; foreach ($object->getMounts() as $value_3) { - $values_3[] = new \ArrayObject($this->normalizer->normalize($value_3, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); } $data['Mounts'] = $values_3; } @@ -236,4 +233,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainerSummaryItem' => false]; + } } diff --git a/src/Normalizer/ContainersCreatePostBodyNormalizer.php b/src/Normalizer/ContainersCreatePostBodyNormalizer.php index 4767087e..645395ba 100644 --- a/src/Normalizer/ContainersCreatePostBodyNormalizer.php +++ b/src/Normalizer/ContainersCreatePostBodyNormalizer.php @@ -21,19 +21,16 @@ class ContainersCreatePostBodyNormalizer implements DenormalizerInterface, Norma use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainersCreatePostBody' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainersCreatePostBody' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -274,9 +271,9 @@ public function normalize($object, $format = null, array $context = []) $data['AttachStderr'] = $object->getAttachStderr(); } if ($object->isInitialized('exposedPorts') && null !== $object->getExposedPorts()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getExposedPorts() as $key => $value) { - $values[$key] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[$key] = $this->normalizer->normalize($value, 'json', $context); } $data['ExposedPorts'] = $values; } @@ -304,7 +301,7 @@ public function normalize($object, $format = null, array $context = []) $data['Cmd'] = $values_2; } if ($object->isInitialized('healthcheck') && null !== $object->getHealthcheck()) { - $data['Healthcheck'] = new \ArrayObject($this->normalizer->normalize($object->getHealthcheck(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Healthcheck'] = $this->normalizer->normalize($object->getHealthcheck(), 'json', $context); } if ($object->isInitialized('argsEscaped') && null !== $object->getArgsEscaped()) { $data['ArgsEscaped'] = $object->getArgsEscaped(); @@ -313,9 +310,9 @@ public function normalize($object, $format = null, array $context = []) $data['Image'] = $object->getImage(); } if ($object->isInitialized('volumes') && null !== $object->getVolumes()) { - $values_3 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_3 = []; foreach ($object->getVolumes() as $key_1 => $value_3) { - $values_3[$key_1] = new \ArrayObject($this->normalizer->normalize($value_3, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_3[$key_1] = $this->normalizer->normalize($value_3, 'json', $context); } $data['Volumes'] = $values_3; } @@ -343,7 +340,7 @@ public function normalize($object, $format = null, array $context = []) $data['OnBuild'] = $values_5; } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values_6 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_6 = []; foreach ($object->getLabels() as $key_2 => $value_6) { $values_6[$key_2] = $value_6; } @@ -363,10 +360,10 @@ public function normalize($object, $format = null, array $context = []) $data['Shell'] = $values_7; } if ($object->isInitialized('hostConfig') && null !== $object->getHostConfig()) { - $data['HostConfig'] = new \ArrayObject($this->normalizer->normalize($object->getHostConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['HostConfig'] = $this->normalizer->normalize($object->getHostConfig(), 'json', $context); } if ($object->isInitialized('networkingConfig') && null !== $object->getNetworkingConfig()) { - $data['NetworkingConfig'] = new \ArrayObject($this->normalizer->normalize($object->getNetworkingConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['NetworkingConfig'] = $this->normalizer->normalize($object->getNetworkingConfig(), 'json', $context); } foreach ($object as $key_3 => $value_8) { if (preg_match('/.*/', (string) $key_3)) { @@ -376,4 +373,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainersCreatePostBody' => false]; + } } diff --git a/src/Normalizer/ContainersCreatePostResponse201Normalizer.php b/src/Normalizer/ContainersCreatePostResponse201Normalizer.php index d338c23e..7117674c 100644 --- a/src/Normalizer/ContainersCreatePostResponse201Normalizer.php +++ b/src/Normalizer/ContainersCreatePostResponse201Normalizer.php @@ -21,19 +21,16 @@ class ContainersCreatePostResponse201Normalizer implements DenormalizerInterface use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainersCreatePostResponse201' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainersCreatePostResponse201' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -91,4 +88,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainersCreatePostResponse201' => false]; + } } diff --git a/src/Normalizer/ContainersIdArchiveGetResponse400Normalizer.php b/src/Normalizer/ContainersIdArchiveGetResponse400Normalizer.php index 0b5f669b..c243c431 100644 --- a/src/Normalizer/ContainersIdArchiveGetResponse400Normalizer.php +++ b/src/Normalizer/ContainersIdArchiveGetResponse400Normalizer.php @@ -21,19 +21,16 @@ class ContainersIdArchiveGetResponse400Normalizer implements DenormalizerInterfa use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainersIdArchiveGetResponse400' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainersIdArchiveGetResponse400' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -74,7 +71,7 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('errorResponse') && null !== $object->getErrorResponse()) { - $data['ErrorResponse'] = new \ArrayObject($this->normalizer->normalize($object->getErrorResponse(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['ErrorResponse'] = $this->normalizer->normalize($object->getErrorResponse(), 'json', $context); } if ($object->isInitialized('message') && null !== $object->getMessage()) { $data['message'] = $object->getMessage(); @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainersIdArchiveGetResponse400' => false]; + } } diff --git a/src/Normalizer/ContainersIdArchiveHeadJsonResponse400Normalizer.php b/src/Normalizer/ContainersIdArchiveHeadJsonResponse400Normalizer.php index 8ae2f640..4b9a303b 100644 --- a/src/Normalizer/ContainersIdArchiveHeadJsonResponse400Normalizer.php +++ b/src/Normalizer/ContainersIdArchiveHeadJsonResponse400Normalizer.php @@ -21,19 +21,16 @@ class ContainersIdArchiveHeadJsonResponse400Normalizer implements DenormalizerIn use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainersIdArchiveHeadJsonResponse400' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainersIdArchiveHeadJsonResponse400' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -74,7 +71,7 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('errorResponse') && null !== $object->getErrorResponse()) { - $data['ErrorResponse'] = new \ArrayObject($this->normalizer->normalize($object->getErrorResponse(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['ErrorResponse'] = $this->normalizer->normalize($object->getErrorResponse(), 'json', $context); } if ($object->isInitialized('message') && null !== $object->getMessage()) { $data['message'] = $object->getMessage(); @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainersIdArchiveHeadJsonResponse400' => false]; + } } diff --git a/src/Normalizer/ContainersIdArchiveHeadTextplainResponse400Normalizer.php b/src/Normalizer/ContainersIdArchiveHeadTextplainResponse400Normalizer.php index 9d431f7f..b277c08d 100644 --- a/src/Normalizer/ContainersIdArchiveHeadTextplainResponse400Normalizer.php +++ b/src/Normalizer/ContainersIdArchiveHeadTextplainResponse400Normalizer.php @@ -21,19 +21,16 @@ class ContainersIdArchiveHeadTextplainResponse400Normalizer implements Denormali use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainersIdArchiveHeadTextplainResponse400' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainersIdArchiveHeadTextplainResponse400' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -74,7 +71,7 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('errorResponse') && null !== $object->getErrorResponse()) { - $data['ErrorResponse'] = new \ArrayObject($this->normalizer->normalize($object->getErrorResponse(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['ErrorResponse'] = $this->normalizer->normalize($object->getErrorResponse(), 'json', $context); } if ($object->isInitialized('message') && null !== $object->getMessage()) { $data['message'] = $object->getMessage(); @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainersIdArchiveHeadTextplainResponse400' => false]; + } } diff --git a/src/Normalizer/ContainersIdChangesGetResponse200ItemNormalizer.php b/src/Normalizer/ContainersIdChangesGetResponse200ItemNormalizer.php index ad86b546..f8bb15dc 100644 --- a/src/Normalizer/ContainersIdChangesGetResponse200ItemNormalizer.php +++ b/src/Normalizer/ContainersIdChangesGetResponse200ItemNormalizer.php @@ -21,19 +21,16 @@ class ContainersIdChangesGetResponse200ItemNormalizer implements DenormalizerInt use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainersIdChangesGetResponse200Item' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainersIdChangesGetResponse200Item' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -83,4 +80,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainersIdChangesGetResponse200Item' => false]; + } } diff --git a/src/Normalizer/ContainersIdExecPostBodyNormalizer.php b/src/Normalizer/ContainersIdExecPostBodyNormalizer.php index 358d8d0d..b0ad6531 100644 --- a/src/Normalizer/ContainersIdExecPostBodyNormalizer.php +++ b/src/Normalizer/ContainersIdExecPostBodyNormalizer.php @@ -21,19 +21,16 @@ class ContainersIdExecPostBodyNormalizer implements DenormalizerInterface, Norma use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainersIdExecPostBody' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainersIdExecPostBody' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -175,4 +172,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainersIdExecPostBody' => false]; + } } diff --git a/src/Normalizer/ContainersIdJsonGetResponse200Normalizer.php b/src/Normalizer/ContainersIdJsonGetResponse200Normalizer.php index eb1da7d6..8f1b344b 100644 --- a/src/Normalizer/ContainersIdJsonGetResponse200Normalizer.php +++ b/src/Normalizer/ContainersIdJsonGetResponse200Normalizer.php @@ -21,19 +21,16 @@ class ContainersIdJsonGetResponse200Normalizer implements DenormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainersIdJsonGetResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainersIdJsonGetResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -240,7 +237,7 @@ public function normalize($object, $format = null, array $context = []) $data['Args'] = $values; } if ($object->isInitialized('state') && null !== $object->getState()) { - $data['State'] = new \ArrayObject($this->normalizer->normalize($object->getState(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['State'] = $this->normalizer->normalize($object->getState(), 'json', $context); } if ($object->isInitialized('image') && null !== $object->getImage()) { $data['Image'] = $object->getImage(); @@ -286,10 +283,10 @@ public function normalize($object, $format = null, array $context = []) $data['ExecIDs'] = $values_1; } if ($object->isInitialized('hostConfig') && null !== $object->getHostConfig()) { - $data['HostConfig'] = new \ArrayObject($this->normalizer->normalize($object->getHostConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['HostConfig'] = $this->normalizer->normalize($object->getHostConfig(), 'json', $context); } if ($object->isInitialized('graphDriver') && null !== $object->getGraphDriver()) { - $data['GraphDriver'] = new \ArrayObject($this->normalizer->normalize($object->getGraphDriver(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['GraphDriver'] = $this->normalizer->normalize($object->getGraphDriver(), 'json', $context); } if ($object->isInitialized('sizeRw') && null !== $object->getSizeRw()) { $data['SizeRw'] = $object->getSizeRw(); @@ -300,15 +297,15 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('mounts') && null !== $object->getMounts()) { $values_2 = []; foreach ($object->getMounts() as $value_2) { - $values_2[] = new \ArrayObject($this->normalizer->normalize($value_2, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); } $data['Mounts'] = $values_2; } if ($object->isInitialized('config') && null !== $object->getConfig()) { - $data['Config'] = new \ArrayObject($this->normalizer->normalize($object->getConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Config'] = $this->normalizer->normalize($object->getConfig(), 'json', $context); } if ($object->isInitialized('networkSettings') && null !== $object->getNetworkSettings()) { - $data['NetworkSettings'] = new \ArrayObject($this->normalizer->normalize($object->getNetworkSettings(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['NetworkSettings'] = $this->normalizer->normalize($object->getNetworkSettings(), 'json', $context); } foreach ($object as $key => $value_3) { if (preg_match('/.*/', (string) $key)) { @@ -318,4 +315,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainersIdJsonGetResponse200' => false]; + } } diff --git a/src/Normalizer/ContainersIdTopGetJsonResponse200Normalizer.php b/src/Normalizer/ContainersIdTopGetJsonResponse200Normalizer.php index f4b886a4..10e753e0 100644 --- a/src/Normalizer/ContainersIdTopGetJsonResponse200Normalizer.php +++ b/src/Normalizer/ContainersIdTopGetJsonResponse200Normalizer.php @@ -21,19 +21,16 @@ class ContainersIdTopGetJsonResponse200Normalizer implements DenormalizerInterfa use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainersIdTopGetJsonResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainersIdTopGetJsonResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -111,4 +108,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainersIdTopGetJsonResponse200' => false]; + } } diff --git a/src/Normalizer/ContainersIdTopGetTextplainResponse200Normalizer.php b/src/Normalizer/ContainersIdTopGetTextplainResponse200Normalizer.php index 74ee3a12..45943481 100644 --- a/src/Normalizer/ContainersIdTopGetTextplainResponse200Normalizer.php +++ b/src/Normalizer/ContainersIdTopGetTextplainResponse200Normalizer.php @@ -21,19 +21,16 @@ class ContainersIdTopGetTextplainResponse200Normalizer implements DenormalizerIn use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainersIdTopGetTextplainResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainersIdTopGetTextplainResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -111,4 +108,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainersIdTopGetTextplainResponse200' => false]; + } } diff --git a/src/Normalizer/ContainersIdUpdatePostBodyNormalizer.php b/src/Normalizer/ContainersIdUpdatePostBodyNormalizer.php index 7a0b554c..4b2fb5f2 100644 --- a/src/Normalizer/ContainersIdUpdatePostBodyNormalizer.php +++ b/src/Normalizer/ContainersIdUpdatePostBodyNormalizer.php @@ -21,19 +21,16 @@ class ContainersIdUpdatePostBodyNormalizer implements DenormalizerInterface, Nor use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainersIdUpdatePostBody' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainersIdUpdatePostBody' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -310,35 +307,35 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('blkioWeightDevice') && null !== $object->getBlkioWeightDevice()) { $values = []; foreach ($object->getBlkioWeightDevice() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['BlkioWeightDevice'] = $values; } if ($object->isInitialized('blkioDeviceReadBps') && null !== $object->getBlkioDeviceReadBps()) { $values_1 = []; foreach ($object->getBlkioDeviceReadBps() as $value_1) { - $values_1[] = new \ArrayObject($this->normalizer->normalize($value_1, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); } $data['BlkioDeviceReadBps'] = $values_1; } if ($object->isInitialized('blkioDeviceWriteBps') && null !== $object->getBlkioDeviceWriteBps()) { $values_2 = []; foreach ($object->getBlkioDeviceWriteBps() as $value_2) { - $values_2[] = new \ArrayObject($this->normalizer->normalize($value_2, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); } $data['BlkioDeviceWriteBps'] = $values_2; } if ($object->isInitialized('blkioDeviceReadIOps') && null !== $object->getBlkioDeviceReadIOps()) { $values_3 = []; foreach ($object->getBlkioDeviceReadIOps() as $value_3) { - $values_3[] = new \ArrayObject($this->normalizer->normalize($value_3, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); } $data['BlkioDeviceReadIOps'] = $values_3; } if ($object->isInitialized('blkioDeviceWriteIOps') && null !== $object->getBlkioDeviceWriteIOps()) { $values_4 = []; foreach ($object->getBlkioDeviceWriteIOps() as $value_4) { - $values_4[] = new \ArrayObject($this->normalizer->normalize($value_4, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_4[] = $this->normalizer->normalize($value_4, 'json', $context); } $data['BlkioDeviceWriteIOps'] = $values_4; } @@ -363,7 +360,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('devices') && null !== $object->getDevices()) { $values_5 = []; foreach ($object->getDevices() as $value_5) { - $values_5[] = new \ArrayObject($this->normalizer->normalize($value_5, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_5[] = $this->normalizer->normalize($value_5, 'json', $context); } $data['Devices'] = $values_5; } @@ -377,7 +374,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('deviceRequests') && null !== $object->getDeviceRequests()) { $values_7 = []; foreach ($object->getDeviceRequests() as $value_7) { - $values_7[] = new \ArrayObject($this->normalizer->normalize($value_7, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_7[] = $this->normalizer->normalize($value_7, 'json', $context); } $data['DeviceRequests'] = $values_7; } @@ -411,7 +408,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('ulimits') && null !== $object->getUlimits()) { $values_8 = []; foreach ($object->getUlimits() as $value_8) { - $values_8[] = new \ArrayObject($this->normalizer->normalize($value_8, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_8[] = $this->normalizer->normalize($value_8, 'json', $context); } $data['Ulimits'] = $values_8; } @@ -428,7 +425,7 @@ public function normalize($object, $format = null, array $context = []) $data['IOMaximumBandwidth'] = $object->getIOMaximumBandwidth(); } if ($object->isInitialized('restartPolicy') && null !== $object->getRestartPolicy()) { - $data['RestartPolicy'] = new \ArrayObject($this->normalizer->normalize($object->getRestartPolicy(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['RestartPolicy'] = $this->normalizer->normalize($object->getRestartPolicy(), 'json', $context); } foreach ($object as $key => $value_9) { if (preg_match('/.*/', (string) $key)) { @@ -438,4 +435,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainersIdUpdatePostBody' => false]; + } } diff --git a/src/Normalizer/ContainersIdUpdatePostResponse200Normalizer.php b/src/Normalizer/ContainersIdUpdatePostResponse200Normalizer.php index 913dccdf..2f721741 100644 --- a/src/Normalizer/ContainersIdUpdatePostResponse200Normalizer.php +++ b/src/Normalizer/ContainersIdUpdatePostResponse200Normalizer.php @@ -21,19 +21,16 @@ class ContainersIdUpdatePostResponse200Normalizer implements DenormalizerInterfa use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainersIdUpdatePostResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainersIdUpdatePostResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -86,4 +83,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainersIdUpdatePostResponse200' => false]; + } } diff --git a/src/Normalizer/ContainersIdWaitPostResponse200ErrorNormalizer.php b/src/Normalizer/ContainersIdWaitPostResponse200ErrorNormalizer.php index 5e3fabf1..7abb1a7a 100644 --- a/src/Normalizer/ContainersIdWaitPostResponse200ErrorNormalizer.php +++ b/src/Normalizer/ContainersIdWaitPostResponse200ErrorNormalizer.php @@ -21,19 +21,16 @@ class ContainersIdWaitPostResponse200ErrorNormalizer implements DenormalizerInte use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainersIdWaitPostResponse200Error' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainersIdWaitPostResponse200Error' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -78,4 +75,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainersIdWaitPostResponse200Error' => false]; + } } diff --git a/src/Normalizer/ContainersIdWaitPostResponse200Normalizer.php b/src/Normalizer/ContainersIdWaitPostResponse200Normalizer.php index f4418521..c0a130e9 100644 --- a/src/Normalizer/ContainersIdWaitPostResponse200Normalizer.php +++ b/src/Normalizer/ContainersIdWaitPostResponse200Normalizer.php @@ -21,19 +21,16 @@ class ContainersIdWaitPostResponse200Normalizer implements DenormalizerInterface use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainersIdWaitPostResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainersIdWaitPostResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -75,7 +72,7 @@ public function normalize($object, $format = null, array $context = []) $data = []; $data['StatusCode'] = $object->getStatusCode(); if ($object->isInitialized('error') && null !== $object->getError()) { - $data['Error'] = new \ArrayObject($this->normalizer->normalize($object->getError(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Error'] = $this->normalizer->normalize($object->getError(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -85,4 +82,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainersIdWaitPostResponse200' => false]; + } } diff --git a/src/Normalizer/ContainersPrunePostResponse200Normalizer.php b/src/Normalizer/ContainersPrunePostResponse200Normalizer.php index 4eb358da..f068c799 100644 --- a/src/Normalizer/ContainersPrunePostResponse200Normalizer.php +++ b/src/Normalizer/ContainersPrunePostResponse200Normalizer.php @@ -21,19 +21,16 @@ class ContainersPrunePostResponse200Normalizer implements DenormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ContainersPrunePostResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ContainersPrunePostResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -95,4 +92,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ContainersPrunePostResponse200' => false]; + } } diff --git a/src/Normalizer/CreateImageInfoNormalizer.php b/src/Normalizer/CreateImageInfoNormalizer.php index 0a453a05..6708d140 100644 --- a/src/Normalizer/CreateImageInfoNormalizer.php +++ b/src/Normalizer/CreateImageInfoNormalizer.php @@ -21,19 +21,16 @@ class CreateImageInfoNormalizer implements DenormalizerInterface, NormalizerInte use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\CreateImageInfo' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\CreateImageInfo' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -104,7 +101,7 @@ public function normalize($object, $format = null, array $context = []) $data['progress'] = $object->getProgress(); } if ($object->isInitialized('progressDetail') && null !== $object->getProgressDetail()) { - $data['progressDetail'] = new \ArrayObject($this->normalizer->normalize($object->getProgressDetail(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['progressDetail'] = $this->normalizer->normalize($object->getProgressDetail(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -114,4 +111,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\CreateImageInfo' => false]; + } } diff --git a/src/Normalizer/DeviceMappingNormalizer.php b/src/Normalizer/DeviceMappingNormalizer.php index 2b2c473e..90283c17 100644 --- a/src/Normalizer/DeviceMappingNormalizer.php +++ b/src/Normalizer/DeviceMappingNormalizer.php @@ -21,19 +21,16 @@ class DeviceMappingNormalizer implements DenormalizerInterface, NormalizerInterf use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\DeviceMapping' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\DeviceMapping' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -96,4 +93,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\DeviceMapping' => false]; + } } diff --git a/src/Normalizer/DeviceRequestNormalizer.php b/src/Normalizer/DeviceRequestNormalizer.php index 4def9794..921d00dc 100644 --- a/src/Normalizer/DeviceRequestNormalizer.php +++ b/src/Normalizer/DeviceRequestNormalizer.php @@ -21,19 +21,16 @@ class DeviceRequestNormalizer implements DenormalizerInterface, NormalizerInterf use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\DeviceRequest' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\DeviceRequest' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -132,7 +129,7 @@ public function normalize($object, $format = null, array $context = []) $data['Capabilities'] = $values_1; } if ($object->isInitialized('options') && null !== $object->getOptions()) { - $values_3 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_3 = []; foreach ($object->getOptions() as $key => $value_3) { $values_3[$key] = $value_3; } @@ -146,4 +143,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\DeviceRequest' => false]; + } } diff --git a/src/Normalizer/DistributionNameJsonGetResponse200DescriptorNormalizer.php b/src/Normalizer/DistributionNameJsonGetResponse200DescriptorNormalizer.php index afaae4dc..d59f1f87 100644 --- a/src/Normalizer/DistributionNameJsonGetResponse200DescriptorNormalizer.php +++ b/src/Normalizer/DistributionNameJsonGetResponse200DescriptorNormalizer.php @@ -21,19 +21,16 @@ class DistributionNameJsonGetResponse200DescriptorNormalizer implements Denormal use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\DistributionNameJsonGetResponse200Descriptor' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\DistributionNameJsonGetResponse200Descriptor' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -113,4 +110,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\DistributionNameJsonGetResponse200Descriptor' => false]; + } } diff --git a/src/Normalizer/DistributionNameJsonGetResponse200Normalizer.php b/src/Normalizer/DistributionNameJsonGetResponse200Normalizer.php index c2e3ded9..2fbf4b01 100644 --- a/src/Normalizer/DistributionNameJsonGetResponse200Normalizer.php +++ b/src/Normalizer/DistributionNameJsonGetResponse200Normalizer.php @@ -21,19 +21,16 @@ class DistributionNameJsonGetResponse200Normalizer implements DenormalizerInterf use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\DistributionNameJsonGetResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\DistributionNameJsonGetResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -77,10 +74,10 @@ public function denormalize($data, $class, $format = null, array $context = []) public function normalize($object, $format = null, array $context = []) { $data = []; - $data['Descriptor'] = new \ArrayObject($this->normalizer->normalize($object->getDescriptor(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Descriptor'] = $this->normalizer->normalize($object->getDescriptor(), 'json', $context); $values = []; foreach ($object->getPlatforms() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['Platforms'] = $values; foreach ($object as $key => $value_1) { @@ -91,4 +88,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\DistributionNameJsonGetResponse200' => false]; + } } diff --git a/src/Normalizer/DistributionNameJsonGetResponse200PlatformsItemNormalizer.php b/src/Normalizer/DistributionNameJsonGetResponse200PlatformsItemNormalizer.php index 2479e814..fda08109 100644 --- a/src/Normalizer/DistributionNameJsonGetResponse200PlatformsItemNormalizer.php +++ b/src/Normalizer/DistributionNameJsonGetResponse200PlatformsItemNormalizer.php @@ -21,19 +21,16 @@ class DistributionNameJsonGetResponse200PlatformsItemNormalizer implements Denor use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\DistributionNameJsonGetResponse200PlatformsItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\DistributionNameJsonGetResponse200PlatformsItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -139,4 +136,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\DistributionNameJsonGetResponse200PlatformsItem' => false]; + } } diff --git a/src/Normalizer/DriverNormalizer.php b/src/Normalizer/DriverNormalizer.php index 75a84ceb..a9a95818 100644 --- a/src/Normalizer/DriverNormalizer.php +++ b/src/Normalizer/DriverNormalizer.php @@ -21,19 +21,16 @@ class DriverNormalizer implements DenormalizerInterface, NormalizerInterface, De use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Driver' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Driver' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -79,7 +76,7 @@ public function normalize($object, $format = null, array $context = []) $data = []; $data['Name'] = $object->getName(); if ($object->isInitialized('options') && null !== $object->getOptions()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getOptions() as $key => $value) { $values[$key] = $value; } @@ -93,4 +90,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Driver' => false]; + } } diff --git a/src/Normalizer/EndpointIPAMConfigNormalizer.php b/src/Normalizer/EndpointIPAMConfigNormalizer.php index affe0e65..73ef27ef 100644 --- a/src/Normalizer/EndpointIPAMConfigNormalizer.php +++ b/src/Normalizer/EndpointIPAMConfigNormalizer.php @@ -21,19 +21,16 @@ class EndpointIPAMConfigNormalizer implements DenormalizerInterface, NormalizerI use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\EndpointIPAMConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\EndpointIPAMConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -104,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\EndpointIPAMConfig' => false]; + } } diff --git a/src/Normalizer/EndpointPortConfigNormalizer.php b/src/Normalizer/EndpointPortConfigNormalizer.php index 01ee75cf..859b011e 100644 --- a/src/Normalizer/EndpointPortConfigNormalizer.php +++ b/src/Normalizer/EndpointPortConfigNormalizer.php @@ -21,19 +21,16 @@ class EndpointPortConfigNormalizer implements DenormalizerInterface, NormalizerI use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\EndpointPortConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\EndpointPortConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -114,4 +111,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\EndpointPortConfig' => false]; + } } diff --git a/src/Normalizer/EndpointSettingsNormalizer.php b/src/Normalizer/EndpointSettingsNormalizer.php index eab6f97a..e062b524 100644 --- a/src/Normalizer/EndpointSettingsNormalizer.php +++ b/src/Normalizer/EndpointSettingsNormalizer.php @@ -21,19 +21,16 @@ class EndpointSettingsNormalizer implements DenormalizerInterface, NormalizerInt use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\EndpointSettings' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\EndpointSettings' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -152,7 +149,7 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('iPAMConfig') && null !== $object->getIPAMConfig()) { - $data['IPAMConfig'] = new \ArrayObject($this->normalizer->normalize($object->getIPAMConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['IPAMConfig'] = $this->normalizer->normalize($object->getIPAMConfig(), 'json', $context); } if ($object->isInitialized('links') && null !== $object->getLinks()) { $values = []; @@ -196,7 +193,7 @@ public function normalize($object, $format = null, array $context = []) $data['MacAddress'] = $object->getMacAddress(); } if ($object->isInitialized('driverOpts') && null !== $object->getDriverOpts()) { - $values_2 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_2 = []; foreach ($object->getDriverOpts() as $key => $value_2) { $values_2[$key] = $value_2; } @@ -210,4 +207,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\EndpointSettings' => false]; + } } diff --git a/src/Normalizer/EndpointSpecNormalizer.php b/src/Normalizer/EndpointSpecNormalizer.php index e27367b2..a9a11a45 100644 --- a/src/Normalizer/EndpointSpecNormalizer.php +++ b/src/Normalizer/EndpointSpecNormalizer.php @@ -21,19 +21,16 @@ class EndpointSpecNormalizer implements DenormalizerInterface, NormalizerInterfa use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\EndpointSpec' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\EndpointSpec' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -83,7 +80,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('ports') && null !== $object->getPorts()) { $values = []; foreach ($object->getPorts() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['Ports'] = $values; } @@ -95,4 +92,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\EndpointSpec' => false]; + } } diff --git a/src/Normalizer/EngineDescriptionNormalizer.php b/src/Normalizer/EngineDescriptionNormalizer.php index 5f5cd9e3..8eecc995 100644 --- a/src/Normalizer/EngineDescriptionNormalizer.php +++ b/src/Normalizer/EngineDescriptionNormalizer.php @@ -21,19 +21,16 @@ class EngineDescriptionNormalizer implements DenormalizerInterface, NormalizerIn use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\EngineDescription' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\EngineDescription' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -91,7 +88,7 @@ public function normalize($object, $format = null, array $context = []) $data['EngineVersion'] = $object->getEngineVersion(); } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getLabels() as $key => $value) { $values[$key] = $value; } @@ -100,7 +97,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('plugins') && null !== $object->getPlugins()) { $values_1 = []; foreach ($object->getPlugins() as $value_1) { - $values_1[] = new \ArrayObject($this->normalizer->normalize($value_1, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); } $data['Plugins'] = $values_1; } @@ -112,4 +109,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\EngineDescription' => false]; + } } diff --git a/src/Normalizer/EngineDescriptionPluginsItemNormalizer.php b/src/Normalizer/EngineDescriptionPluginsItemNormalizer.php index 67cc53d9..7c48e82e 100644 --- a/src/Normalizer/EngineDescriptionPluginsItemNormalizer.php +++ b/src/Normalizer/EngineDescriptionPluginsItemNormalizer.php @@ -21,19 +21,16 @@ class EngineDescriptionPluginsItemNormalizer implements DenormalizerInterface, N use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\EngineDescriptionPluginsItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\EngineDescriptionPluginsItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\EngineDescriptionPluginsItem' => false]; + } } diff --git a/src/Normalizer/ErrorDetailNormalizer.php b/src/Normalizer/ErrorDetailNormalizer.php index 3bc4ba45..5eaa6de7 100644 --- a/src/Normalizer/ErrorDetailNormalizer.php +++ b/src/Normalizer/ErrorDetailNormalizer.php @@ -21,19 +21,16 @@ class ErrorDetailNormalizer implements DenormalizerInterface, NormalizerInterfac use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ErrorDetail' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ErrorDetail' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ErrorDetail' => false]; + } } diff --git a/src/Normalizer/ErrorResponseNormalizer.php b/src/Normalizer/ErrorResponseNormalizer.php index c46cffb9..ab262824 100644 --- a/src/Normalizer/ErrorResponseNormalizer.php +++ b/src/Normalizer/ErrorResponseNormalizer.php @@ -21,19 +21,16 @@ class ErrorResponseNormalizer implements DenormalizerInterface, NormalizerInterf use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ErrorResponse' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ErrorResponse' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -76,4 +73,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ErrorResponse' => false]; + } } diff --git a/src/Normalizer/EventsGetResponse200ActorNormalizer.php b/src/Normalizer/EventsGetResponse200ActorNormalizer.php index a5f5a290..cb681021 100644 --- a/src/Normalizer/EventsGetResponse200ActorNormalizer.php +++ b/src/Normalizer/EventsGetResponse200ActorNormalizer.php @@ -21,19 +21,16 @@ class EventsGetResponse200ActorNormalizer implements DenormalizerInterface, Norm use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\EventsGetResponse200Actor' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\EventsGetResponse200Actor' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -81,7 +78,7 @@ public function normalize($object, $format = null, array $context = []) $data['ID'] = $object->getID(); } if ($object->isInitialized('attributes') && null !== $object->getAttributes()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getAttributes() as $key => $value) { $values[$key] = $value; } @@ -95,4 +92,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\EventsGetResponse200Actor' => false]; + } } diff --git a/src/Normalizer/EventsGetResponse200Normalizer.php b/src/Normalizer/EventsGetResponse200Normalizer.php index 6a08df36..ff143144 100644 --- a/src/Normalizer/EventsGetResponse200Normalizer.php +++ b/src/Normalizer/EventsGetResponse200Normalizer.php @@ -21,19 +21,16 @@ class EventsGetResponse200Normalizer implements DenormalizerInterface, Normalize use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\EventsGetResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\EventsGetResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -98,7 +95,7 @@ public function normalize($object, $format = null, array $context = []) $data['Action'] = $object->getAction(); } if ($object->isInitialized('actor') && null !== $object->getActor()) { - $data['Actor'] = new \ArrayObject($this->normalizer->normalize($object->getActor(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Actor'] = $this->normalizer->normalize($object->getActor(), 'json', $context); } if ($object->isInitialized('time') && null !== $object->getTime()) { $data['time'] = $object->getTime(); @@ -114,4 +111,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\EventsGetResponse200' => false]; + } } diff --git a/src/Normalizer/ExecIdJsonGetResponse200Normalizer.php b/src/Normalizer/ExecIdJsonGetResponse200Normalizer.php index 5a966e97..cec189f8 100644 --- a/src/Normalizer/ExecIdJsonGetResponse200Normalizer.php +++ b/src/Normalizer/ExecIdJsonGetResponse200Normalizer.php @@ -21,19 +21,16 @@ class ExecIdJsonGetResponse200Normalizer implements DenormalizerInterface, Norma use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ExecIdJsonGetResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ExecIdJsonGetResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -143,7 +140,7 @@ public function normalize($object, $format = null, array $context = []) $data['ExitCode'] = $object->getExitCode(); } if ($object->isInitialized('processConfig') && null !== $object->getProcessConfig()) { - $data['ProcessConfig'] = new \ArrayObject($this->normalizer->normalize($object->getProcessConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['ProcessConfig'] = $this->normalizer->normalize($object->getProcessConfig(), 'json', $context); } if ($object->isInitialized('openStdin') && null !== $object->getOpenStdin()) { $data['OpenStdin'] = $object->getOpenStdin(); @@ -168,4 +165,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ExecIdJsonGetResponse200' => false]; + } } diff --git a/src/Normalizer/ExecIdStartPostBodyNormalizer.php b/src/Normalizer/ExecIdStartPostBodyNormalizer.php index 90a7881a..427573d2 100644 --- a/src/Normalizer/ExecIdStartPostBodyNormalizer.php +++ b/src/Normalizer/ExecIdStartPostBodyNormalizer.php @@ -21,19 +21,16 @@ class ExecIdStartPostBodyNormalizer implements DenormalizerInterface, Normalizer use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ExecIdStartPostBody' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ExecIdStartPostBody' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ExecIdStartPostBody' => false]; + } } diff --git a/src/Normalizer/GenericResourcesItemDiscreteResourceSpecNormalizer.php b/src/Normalizer/GenericResourcesItemDiscreteResourceSpecNormalizer.php index 7b3f174c..d3ee321a 100644 --- a/src/Normalizer/GenericResourcesItemDiscreteResourceSpecNormalizer.php +++ b/src/Normalizer/GenericResourcesItemDiscreteResourceSpecNormalizer.php @@ -21,19 +21,16 @@ class GenericResourcesItemDiscreteResourceSpecNormalizer implements Denormalizer use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\GenericResourcesItemDiscreteResourceSpec' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\GenericResourcesItemDiscreteResourceSpec' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\GenericResourcesItemDiscreteResourceSpec' => false]; + } } diff --git a/src/Normalizer/GenericResourcesItemNamedResourceSpecNormalizer.php b/src/Normalizer/GenericResourcesItemNamedResourceSpecNormalizer.php index 40c28c62..9c23f05a 100644 --- a/src/Normalizer/GenericResourcesItemNamedResourceSpecNormalizer.php +++ b/src/Normalizer/GenericResourcesItemNamedResourceSpecNormalizer.php @@ -21,19 +21,16 @@ class GenericResourcesItemNamedResourceSpecNormalizer implements DenormalizerInt use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\GenericResourcesItemNamedResourceSpec' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\GenericResourcesItemNamedResourceSpec' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\GenericResourcesItemNamedResourceSpec' => false]; + } } diff --git a/src/Normalizer/GenericResourcesItemNormalizer.php b/src/Normalizer/GenericResourcesItemNormalizer.php index 83436849..38293961 100644 --- a/src/Normalizer/GenericResourcesItemNormalizer.php +++ b/src/Normalizer/GenericResourcesItemNormalizer.php @@ -21,19 +21,16 @@ class GenericResourcesItemNormalizer implements DenormalizerInterface, Normalize use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\GenericResourcesItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\GenericResourcesItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -74,10 +71,10 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('namedResourceSpec') && null !== $object->getNamedResourceSpec()) { - $data['NamedResourceSpec'] = new \ArrayObject($this->normalizer->normalize($object->getNamedResourceSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['NamedResourceSpec'] = $this->normalizer->normalize($object->getNamedResourceSpec(), 'json', $context); } if ($object->isInitialized('discreteResourceSpec') && null !== $object->getDiscreteResourceSpec()) { - $data['DiscreteResourceSpec'] = new \ArrayObject($this->normalizer->normalize($object->getDiscreteResourceSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['DiscreteResourceSpec'] = $this->normalizer->normalize($object->getDiscreteResourceSpec(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\GenericResourcesItem' => false]; + } } diff --git a/src/Normalizer/GraphDriverDataNormalizer.php b/src/Normalizer/GraphDriverDataNormalizer.php index fad6a049..ca8be754 100644 --- a/src/Normalizer/GraphDriverDataNormalizer.php +++ b/src/Normalizer/GraphDriverDataNormalizer.php @@ -21,19 +21,16 @@ class GraphDriverDataNormalizer implements DenormalizerInterface, NormalizerInte use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\GraphDriverData' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\GraphDriverData' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -78,7 +75,7 @@ public function normalize($object, $format = null, array $context = []) { $data = []; $data['Name'] = $object->getName(); - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getData() as $key => $value) { $values[$key] = $value; } @@ -91,4 +88,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\GraphDriverData' => false]; + } } diff --git a/src/Normalizer/HealthConfigNormalizer.php b/src/Normalizer/HealthConfigNormalizer.php index 020480f7..3c67e284 100644 --- a/src/Normalizer/HealthConfigNormalizer.php +++ b/src/Normalizer/HealthConfigNormalizer.php @@ -21,19 +21,16 @@ class HealthConfigNormalizer implements DenormalizerInterface, NormalizerInterfa use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\HealthConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\HealthConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -122,4 +119,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\HealthConfig' => false]; + } } diff --git a/src/Normalizer/HealthNormalizer.php b/src/Normalizer/HealthNormalizer.php index 95bfc7fd..292e919f 100644 --- a/src/Normalizer/HealthNormalizer.php +++ b/src/Normalizer/HealthNormalizer.php @@ -21,19 +21,16 @@ class HealthNormalizer implements DenormalizerInterface, NormalizerInterface, De use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Health' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Health' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -92,7 +89,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('log') && null !== $object->getLog()) { $values = []; foreach ($object->getLog() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['Log'] = $values; } @@ -104,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Health' => false]; + } } diff --git a/src/Normalizer/HealthcheckResultNormalizer.php b/src/Normalizer/HealthcheckResultNormalizer.php index 5c73c6f3..45b2f7e8 100644 --- a/src/Normalizer/HealthcheckResultNormalizer.php +++ b/src/Normalizer/HealthcheckResultNormalizer.php @@ -21,19 +21,16 @@ class HealthcheckResultNormalizer implements DenormalizerInterface, NormalizerIn use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\HealthcheckResult' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\HealthcheckResult' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -105,4 +102,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\HealthcheckResult' => false]; + } } diff --git a/src/Normalizer/HostConfigLogConfigNormalizer.php b/src/Normalizer/HostConfigLogConfigNormalizer.php index d97b3b89..287cf787 100644 --- a/src/Normalizer/HostConfigLogConfigNormalizer.php +++ b/src/Normalizer/HostConfigLogConfigNormalizer.php @@ -21,19 +21,16 @@ class HostConfigLogConfigNormalizer implements DenormalizerInterface, Normalizer use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\HostConfigLogConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\HostConfigLogConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -81,7 +78,7 @@ public function normalize($object, $format = null, array $context = []) $data['Type'] = $object->getType(); } if ($object->isInitialized('config') && null !== $object->getConfig()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getConfig() as $key => $value) { $values[$key] = $value; } @@ -95,4 +92,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\HostConfigLogConfig' => false]; + } } diff --git a/src/Normalizer/HostConfigNormalizer.php b/src/Normalizer/HostConfigNormalizer.php index 3a06b7b3..d1e946e7 100644 --- a/src/Normalizer/HostConfigNormalizer.php +++ b/src/Normalizer/HostConfigNormalizer.php @@ -21,19 +21,16 @@ class HostConfigNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\HostConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\HostConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -612,35 +609,35 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('blkioWeightDevice') && null !== $object->getBlkioWeightDevice()) { $values = []; foreach ($object->getBlkioWeightDevice() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['BlkioWeightDevice'] = $values; } if ($object->isInitialized('blkioDeviceReadBps') && null !== $object->getBlkioDeviceReadBps()) { $values_1 = []; foreach ($object->getBlkioDeviceReadBps() as $value_1) { - $values_1[] = new \ArrayObject($this->normalizer->normalize($value_1, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); } $data['BlkioDeviceReadBps'] = $values_1; } if ($object->isInitialized('blkioDeviceWriteBps') && null !== $object->getBlkioDeviceWriteBps()) { $values_2 = []; foreach ($object->getBlkioDeviceWriteBps() as $value_2) { - $values_2[] = new \ArrayObject($this->normalizer->normalize($value_2, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); } $data['BlkioDeviceWriteBps'] = $values_2; } if ($object->isInitialized('blkioDeviceReadIOps') && null !== $object->getBlkioDeviceReadIOps()) { $values_3 = []; foreach ($object->getBlkioDeviceReadIOps() as $value_3) { - $values_3[] = new \ArrayObject($this->normalizer->normalize($value_3, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); } $data['BlkioDeviceReadIOps'] = $values_3; } if ($object->isInitialized('blkioDeviceWriteIOps') && null !== $object->getBlkioDeviceWriteIOps()) { $values_4 = []; foreach ($object->getBlkioDeviceWriteIOps() as $value_4) { - $values_4[] = new \ArrayObject($this->normalizer->normalize($value_4, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_4[] = $this->normalizer->normalize($value_4, 'json', $context); } $data['BlkioDeviceWriteIOps'] = $values_4; } @@ -665,7 +662,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('devices') && null !== $object->getDevices()) { $values_5 = []; foreach ($object->getDevices() as $value_5) { - $values_5[] = new \ArrayObject($this->normalizer->normalize($value_5, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_5[] = $this->normalizer->normalize($value_5, 'json', $context); } $data['Devices'] = $values_5; } @@ -679,7 +676,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('deviceRequests') && null !== $object->getDeviceRequests()) { $values_7 = []; foreach ($object->getDeviceRequests() as $value_7) { - $values_7[] = new \ArrayObject($this->normalizer->normalize($value_7, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_7[] = $this->normalizer->normalize($value_7, 'json', $context); } $data['DeviceRequests'] = $values_7; } @@ -713,7 +710,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('ulimits') && null !== $object->getUlimits()) { $values_8 = []; foreach ($object->getUlimits() as $value_8) { - $values_8[] = new \ArrayObject($this->normalizer->normalize($value_8, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_8[] = $this->normalizer->normalize($value_8, 'json', $context); } $data['Ulimits'] = $values_8; } @@ -740,24 +737,24 @@ public function normalize($object, $format = null, array $context = []) $data['ContainerIDFile'] = $object->getContainerIDFile(); } if ($object->isInitialized('logConfig') && null !== $object->getLogConfig()) { - $data['LogConfig'] = new \ArrayObject($this->normalizer->normalize($object->getLogConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['LogConfig'] = $this->normalizer->normalize($object->getLogConfig(), 'json', $context); } if ($object->isInitialized('networkMode') && null !== $object->getNetworkMode()) { $data['NetworkMode'] = $object->getNetworkMode(); } if ($object->isInitialized('portBindings') && null !== $object->getPortBindings()) { - $values_10 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_10 = []; foreach ($object->getPortBindings() as $key => $value_10) { $values_11 = []; foreach ($value_10 as $value_11) { - $values_11[] = new \ArrayObject($this->normalizer->normalize($value_11, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_11[] = $this->normalizer->normalize($value_11, 'json', $context); } $values_10[$key] = $values_11; } $data['PortBindings'] = $values_10; } if ($object->isInitialized('restartPolicy') && null !== $object->getRestartPolicy()) { - $data['RestartPolicy'] = new \ArrayObject($this->normalizer->normalize($object->getRestartPolicy(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['RestartPolicy'] = $this->normalizer->normalize($object->getRestartPolicy(), 'json', $context); } if ($object->isInitialized('autoRemove') && null !== $object->getAutoRemove()) { $data['AutoRemove'] = $object->getAutoRemove(); @@ -775,7 +772,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('mounts') && null !== $object->getMounts()) { $values_13 = []; foreach ($object->getMounts() as $value_13) { - $values_13[] = new \ArrayObject($this->normalizer->normalize($value_13, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_13[] = $this->normalizer->normalize($value_13, 'json', $context); } $data['Mounts'] = $values_13; } @@ -867,14 +864,14 @@ public function normalize($object, $format = null, array $context = []) $data['SecurityOpt'] = $values_22; } if ($object->isInitialized('storageOpt') && null !== $object->getStorageOpt()) { - $values_23 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_23 = []; foreach ($object->getStorageOpt() as $key_1 => $value_23) { $values_23[$key_1] = $value_23; } $data['StorageOpt'] = $values_23; } if ($object->isInitialized('tmpfs') && null !== $object->getTmpfs()) { - $values_24 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_24 = []; foreach ($object->getTmpfs() as $key_2 => $value_24) { $values_24[$key_2] = $value_24; } @@ -890,7 +887,7 @@ public function normalize($object, $format = null, array $context = []) $data['ShmSize'] = $object->getShmSize(); } if ($object->isInitialized('sysctls') && null !== $object->getSysctls()) { - $values_25 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_25 = []; foreach ($object->getSysctls() as $key_3 => $value_25) { $values_25[$key_3] = $value_25; } @@ -931,4 +928,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\HostConfig' => false]; + } } diff --git a/src/Normalizer/IPAMNormalizer.php b/src/Normalizer/IPAMNormalizer.php index 99f96bf1..88f03795 100644 --- a/src/Normalizer/IPAMNormalizer.php +++ b/src/Normalizer/IPAMNormalizer.php @@ -21,19 +21,16 @@ class IPAMNormalizer implements DenormalizerInterface, NormalizerInterface, Deno use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\IPAM' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\IPAM' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -97,7 +94,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('config') && null !== $object->getConfig()) { $values = []; foreach ($object->getConfig() as $value) { - $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_1 = []; foreach ($value as $key => $value_1) { $values_1[$key] = $value_1; } @@ -106,7 +103,7 @@ public function normalize($object, $format = null, array $context = []) $data['Config'] = $values; } if ($object->isInitialized('options') && null !== $object->getOptions()) { - $values_2 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_2 = []; foreach ($object->getOptions() as $key_1 => $value_2) { $values_2[$key_1] = $value_2; } @@ -120,4 +117,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\IPAM' => false]; + } } diff --git a/src/Normalizer/IdResponseNormalizer.php b/src/Normalizer/IdResponseNormalizer.php index 1183499e..1038783c 100644 --- a/src/Normalizer/IdResponseNormalizer.php +++ b/src/Normalizer/IdResponseNormalizer.php @@ -21,19 +21,16 @@ class IdResponseNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\IdResponse' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\IdResponse' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -76,4 +73,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\IdResponse' => false]; + } } diff --git a/src/Normalizer/ImageDeleteResponseItemNormalizer.php b/src/Normalizer/ImageDeleteResponseItemNormalizer.php index 7d29fa42..84b33cfb 100644 --- a/src/Normalizer/ImageDeleteResponseItemNormalizer.php +++ b/src/Normalizer/ImageDeleteResponseItemNormalizer.php @@ -21,19 +21,16 @@ class ImageDeleteResponseItemNormalizer implements DenormalizerInterface, Normal use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ImageDeleteResponseItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ImageDeleteResponseItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ImageDeleteResponseItem' => false]; + } } diff --git a/src/Normalizer/ImageIDNormalizer.php b/src/Normalizer/ImageIDNormalizer.php index fa1bc23b..ee956d2b 100644 --- a/src/Normalizer/ImageIDNormalizer.php +++ b/src/Normalizer/ImageIDNormalizer.php @@ -21,19 +21,16 @@ class ImageIDNormalizer implements DenormalizerInterface, NormalizerInterface, D use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ImageID' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ImageID' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -78,4 +75,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ImageID' => false]; + } } diff --git a/src/Normalizer/ImageMetadataNormalizer.php b/src/Normalizer/ImageMetadataNormalizer.php index a8aa7c32..aeeaa7e7 100644 --- a/src/Normalizer/ImageMetadataNormalizer.php +++ b/src/Normalizer/ImageMetadataNormalizer.php @@ -21,19 +21,16 @@ class ImageMetadataNormalizer implements DenormalizerInterface, NormalizerInterf use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ImageMetadata' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ImageMetadata' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -78,4 +75,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ImageMetadata' => false]; + } } diff --git a/src/Normalizer/ImageNormalizer.php b/src/Normalizer/ImageNormalizer.php index 9ca0f87e..18047d50 100644 --- a/src/Normalizer/ImageNormalizer.php +++ b/src/Normalizer/ImageNormalizer.php @@ -21,19 +21,16 @@ class ImageNormalizer implements DenormalizerInterface, NormalizerInterface, Den use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Image' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Image' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -203,12 +200,12 @@ public function normalize($object, $format = null, array $context = []) $data['Created'] = $object->getCreated(); $data['Container'] = $object->getContainer(); if ($object->isInitialized('containerConfig') && null !== $object->getContainerConfig()) { - $data['ContainerConfig'] = new \ArrayObject($this->normalizer->normalize($object->getContainerConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['ContainerConfig'] = $this->normalizer->normalize($object->getContainerConfig(), 'json', $context); } $data['DockerVersion'] = $object->getDockerVersion(); $data['Author'] = $object->getAuthor(); if ($object->isInitialized('config') && null !== $object->getConfig()) { - $data['Config'] = new \ArrayObject($this->normalizer->normalize($object->getConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Config'] = $this->normalizer->normalize($object->getConfig(), 'json', $context); } $data['Architecture'] = $object->getArchitecture(); $data['Os'] = $object->getOs(); @@ -217,10 +214,10 @@ public function normalize($object, $format = null, array $context = []) } $data['Size'] = $object->getSize(); $data['VirtualSize'] = $object->getVirtualSize(); - $data['GraphDriver'] = new \ArrayObject($this->normalizer->normalize($object->getGraphDriver(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); - $data['RootFS'] = new \ArrayObject($this->normalizer->normalize($object->getRootFS(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['GraphDriver'] = $this->normalizer->normalize($object->getGraphDriver(), 'json', $context); + $data['RootFS'] = $this->normalizer->normalize($object->getRootFS(), 'json', $context); if ($object->isInitialized('metadata') && null !== $object->getMetadata()) { - $data['Metadata'] = new \ArrayObject($this->normalizer->normalize($object->getMetadata(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Metadata'] = $this->normalizer->normalize($object->getMetadata(), 'json', $context); } foreach ($object as $key => $value_2) { if (preg_match('/.*/', (string) $key)) { @@ -230,4 +227,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Image' => false]; + } } diff --git a/src/Normalizer/ImageRootFSNormalizer.php b/src/Normalizer/ImageRootFSNormalizer.php index 361d9a05..9e1a0b12 100644 --- a/src/Normalizer/ImageRootFSNormalizer.php +++ b/src/Normalizer/ImageRootFSNormalizer.php @@ -21,19 +21,16 @@ class ImageRootFSNormalizer implements DenormalizerInterface, NormalizerInterfac use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ImageRootFS' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ImageRootFS' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -102,4 +99,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ImageRootFS' => false]; + } } diff --git a/src/Normalizer/ImageSummaryNormalizer.php b/src/Normalizer/ImageSummaryNormalizer.php index 15311e20..d561b618 100644 --- a/src/Normalizer/ImageSummaryNormalizer.php +++ b/src/Normalizer/ImageSummaryNormalizer.php @@ -21,19 +21,16 @@ class ImageSummaryNormalizer implements DenormalizerInterface, NormalizerInterfa use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ImageSummary' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ImageSummary' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -149,7 +146,7 @@ public function normalize($object, $format = null, array $context = []) $data['Size'] = $object->getSize(); $data['SharedSize'] = $object->getSharedSize(); $data['VirtualSize'] = $object->getVirtualSize(); - $values_2 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_2 = []; foreach ($object->getLabels() as $key => $value_2) { $values_2[$key] = $value_2; } @@ -163,4 +160,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ImageSummary' => false]; + } } diff --git a/src/Normalizer/ImagesNameHistoryGetResponse200ItemNormalizer.php b/src/Normalizer/ImagesNameHistoryGetResponse200ItemNormalizer.php index f670ce7d..eace0905 100644 --- a/src/Normalizer/ImagesNameHistoryGetResponse200ItemNormalizer.php +++ b/src/Normalizer/ImagesNameHistoryGetResponse200ItemNormalizer.php @@ -21,19 +21,16 @@ class ImagesNameHistoryGetResponse200ItemNormalizer implements DenormalizerInter use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ImagesNameHistoryGetResponse200Item' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ImagesNameHistoryGetResponse200Item' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -119,4 +116,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ImagesNameHistoryGetResponse200Item' => false]; + } } diff --git a/src/Normalizer/ImagesPrunePostResponse200Normalizer.php b/src/Normalizer/ImagesPrunePostResponse200Normalizer.php index 6a39589f..892339a7 100644 --- a/src/Normalizer/ImagesPrunePostResponse200Normalizer.php +++ b/src/Normalizer/ImagesPrunePostResponse200Normalizer.php @@ -21,19 +21,16 @@ class ImagesPrunePostResponse200Normalizer implements DenormalizerInterface, Nor use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ImagesPrunePostResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ImagesPrunePostResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -80,7 +77,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('imagesDeleted') && null !== $object->getImagesDeleted()) { $values = []; foreach ($object->getImagesDeleted() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['ImagesDeleted'] = $values; } @@ -95,4 +92,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ImagesPrunePostResponse200' => false]; + } } diff --git a/src/Normalizer/ImagesSearchGetResponse200ItemNormalizer.php b/src/Normalizer/ImagesSearchGetResponse200ItemNormalizer.php index e06e68f0..58609b5d 100644 --- a/src/Normalizer/ImagesSearchGetResponse200ItemNormalizer.php +++ b/src/Normalizer/ImagesSearchGetResponse200ItemNormalizer.php @@ -21,19 +21,16 @@ class ImagesSearchGetResponse200ItemNormalizer implements DenormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ImagesSearchGetResponse200Item' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ImagesSearchGetResponse200Item' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -114,4 +111,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ImagesSearchGetResponse200Item' => false]; + } } diff --git a/src/Normalizer/IndexInfoNormalizer.php b/src/Normalizer/IndexInfoNormalizer.php index 48e77a41..d0013dd8 100644 --- a/src/Normalizer/IndexInfoNormalizer.php +++ b/src/Normalizer/IndexInfoNormalizer.php @@ -21,19 +21,16 @@ class IndexInfoNormalizer implements DenormalizerInterface, NormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\IndexInfo' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\IndexInfo' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -113,4 +110,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\IndexInfo' => false]; + } } diff --git a/src/Normalizer/JaneObjectNormalizer.php b/src/Normalizer/JaneObjectNormalizer.php index cc8da67d..26431739 100644 --- a/src/Normalizer/JaneObjectNormalizer.php +++ b/src/Normalizer/JaneObjectNormalizer.php @@ -22,12 +22,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface protected $normalizers = ['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\\DeviceRequest' => 'Docker\\API\\Normalizer\\DeviceRequestNormalizer', '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\\Limit' => 'Docker\\API\\Normalizer\\LimitNormalizer', '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\\Health' => 'Docker\\API\\Normalizer\\HealthNormalizer', 'Docker\\API\\Model\\HealthcheckResult' => 'Docker\\API\\Normalizer\\HealthcheckResultNormalizer', '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\\NetworkingConfig' => 'Docker\\API\\Normalizer\\NetworkingConfigNormalizer', '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\\BuildCache' => 'Docker\\API\\Normalizer\\BuildCacheNormalizer', '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\\TaskSpecContainerSpecConfigsItemRuntime' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecConfigsItemRuntimeNormalizer', 'Docker\\API\\Model\\TaskSpecContainerSpecUlimitsItem' => 'Docker\\API\\Normalizer\\TaskSpecContainerSpecUlimitsItemNormalizer', 'Docker\\API\\Model\\TaskSpecNetworkAttachmentSpec' => 'Docker\\API\\Normalizer\\TaskSpecNetworkAttachmentSpecNormalizer', '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\\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\\ServiceSpecModeReplicatedJob' => 'Docker\\API\\Normalizer\\ServiceSpecModeReplicatedJobNormalizer', 'Docker\\API\\Model\\ServiceSpecModeGlobalJob' => 'Docker\\API\\Normalizer\\ServiceSpecModeGlobalJobNormalizer', 'Docker\\API\\Model\\ServiceSpecUpdateConfig' => 'Docker\\API\\Normalizer\\ServiceSpecUpdateConfigNormalizer', 'Docker\\API\\Model\\ServiceSpecRollbackConfig' => 'Docker\\API\\Normalizer\\ServiceSpecRollbackConfigNormalizer', '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\\ServiceServiceStatus' => 'Docker\\API\\Normalizer\\ServiceServiceStatusNormalizer', 'Docker\\API\\Model\\ServiceJobStatus' => 'Docker\\API\\Normalizer\\ServiceJobStatusNormalizer', '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\\ContainerState' => 'Docker\\API\\Normalizer\\ContainerStateNormalizer', 'Docker\\API\\Model\\SystemVersion' => 'Docker\\API\\Normalizer\\SystemVersionNormalizer', 'Docker\\API\\Model\\SystemVersionPlatform' => 'Docker\\API\\Normalizer\\SystemVersionPlatformNormalizer', 'Docker\\API\\Model\\SystemVersionComponentsItem' => 'Docker\\API\\Normalizer\\SystemVersionComponentsItemNormalizer', 'Docker\\API\\Model\\SystemVersionComponentsItemDetails' => 'Docker\\API\\Normalizer\\SystemVersionComponentsItemDetailsNormalizer', 'Docker\\API\\Model\\SystemInfo' => 'Docker\\API\\Normalizer\\SystemInfoNormalizer', 'Docker\\API\\Model\\SystemInfoDefaultAddressPoolsItem' => 'Docker\\API\\Normalizer\\SystemInfoDefaultAddressPoolsItemNormalizer', '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\\NetworkAttachmentConfig' => 'Docker\\API\\Normalizer\\NetworkAttachmentConfigNormalizer', 'Docker\\API\\Model\\ContainersCreatePostBody' => 'Docker\\API\\Normalizer\\ContainersCreatePostBodyNormalizer', 'Docker\\API\\Model\\ContainersCreatePostResponse201' => 'Docker\\API\\Normalizer\\ContainersCreatePostResponse201Normalizer', 'Docker\\API\\Model\\ContainersIdJsonGetResponse200' => 'Docker\\API\\Normalizer\\ContainersIdJsonGetResponse200Normalizer', '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\\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']; protected $normalizersCache = []; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return \array_key_exists($type, $this->normalizers); } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && \array_key_exists($data::class, $this->normalizers); } @@ -43,9 +43,6 @@ public function normalize($object, $format = null, array $context = []) return $normalizer->normalize($object, $format, $context); } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { $denormalizerClass = $this->normalizers[$class]; @@ -68,4 +65,9 @@ private function initNormalizer(string $normalizerClass) return $normalizer; } + + 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\\DeviceRequest' => 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\\Limit' => 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\\Health' => false, 'Docker\\API\\Model\\HealthcheckResult' => 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\\NetworkingConfig' => 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\\BuildCache' => 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\\TaskSpecContainerSpecConfigsItemRuntime' => false, 'Docker\\API\\Model\\TaskSpecContainerSpecUlimitsItem' => false, 'Docker\\API\\Model\\TaskSpecNetworkAttachmentSpec' => 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\\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\\ServiceSpecModeReplicatedJob' => false, 'Docker\\API\\Model\\ServiceSpecModeGlobalJob' => false, 'Docker\\API\\Model\\ServiceSpecUpdateConfig' => false, 'Docker\\API\\Model\\ServiceSpecRollbackConfig' => 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\\ServiceServiceStatus' => false, 'Docker\\API\\Model\\ServiceJobStatus' => 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\\ContainerState' => false, 'Docker\\API\\Model\\SystemVersion' => false, 'Docker\\API\\Model\\SystemVersionPlatform' => false, 'Docker\\API\\Model\\SystemVersionComponentsItem' => false, 'Docker\\API\\Model\\SystemVersionComponentsItemDetails' => false, 'Docker\\API\\Model\\SystemInfo' => false, 'Docker\\API\\Model\\SystemInfoDefaultAddressPoolsItem' => 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\\NetworkAttachmentConfig' => false, 'Docker\\API\\Model\\ContainersCreatePostBody' => false, 'Docker\\API\\Model\\ContainersCreatePostResponse201' => false, 'Docker\\API\\Model\\ContainersIdJsonGetResponse200' => 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\\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]; + } } diff --git a/src/Normalizer/JoinTokensNormalizer.php b/src/Normalizer/JoinTokensNormalizer.php index fb279401..fac5760f 100644 --- a/src/Normalizer/JoinTokensNormalizer.php +++ b/src/Normalizer/JoinTokensNormalizer.php @@ -21,19 +21,16 @@ class JoinTokensNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\JoinTokens' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\JoinTokens' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\JoinTokens' => false]; + } } diff --git a/src/Normalizer/LimitNormalizer.php b/src/Normalizer/LimitNormalizer.php index 943ed337..d3ba43d7 100644 --- a/src/Normalizer/LimitNormalizer.php +++ b/src/Normalizer/LimitNormalizer.php @@ -21,19 +21,16 @@ class LimitNormalizer implements DenormalizerInterface, NormalizerInterface, Den use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Limit' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Limit' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -96,4 +93,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Limit' => false]; + } } diff --git a/src/Normalizer/ManagerStatusNormalizer.php b/src/Normalizer/ManagerStatusNormalizer.php index 1fb7bd3b..348d4667 100644 --- a/src/Normalizer/ManagerStatusNormalizer.php +++ b/src/Normalizer/ManagerStatusNormalizer.php @@ -21,19 +21,16 @@ class ManagerStatusNormalizer implements DenormalizerInterface, NormalizerInterf use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ManagerStatus' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ManagerStatus' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -96,4 +93,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ManagerStatus' => false]; + } } diff --git a/src/Normalizer/MountBindOptionsNormalizer.php b/src/Normalizer/MountBindOptionsNormalizer.php index c1d8d3cb..c166bcaa 100644 --- a/src/Normalizer/MountBindOptionsNormalizer.php +++ b/src/Normalizer/MountBindOptionsNormalizer.php @@ -21,19 +21,16 @@ class MountBindOptionsNormalizer implements DenormalizerInterface, NormalizerInt use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\MountBindOptions' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\MountBindOptions' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\MountBindOptions' => false]; + } } diff --git a/src/Normalizer/MountNormalizer.php b/src/Normalizer/MountNormalizer.php index 6c40f223..9c481a10 100644 --- a/src/Normalizer/MountNormalizer.php +++ b/src/Normalizer/MountNormalizer.php @@ -21,19 +21,16 @@ class MountNormalizer implements DenormalizerInterface, NormalizerInterface, Den use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Mount' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Mount' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -125,13 +122,13 @@ public function normalize($object, $format = null, array $context = []) $data['Consistency'] = $object->getConsistency(); } if ($object->isInitialized('bindOptions') && null !== $object->getBindOptions()) { - $data['BindOptions'] = new \ArrayObject($this->normalizer->normalize($object->getBindOptions(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['BindOptions'] = $this->normalizer->normalize($object->getBindOptions(), 'json', $context); } if ($object->isInitialized('volumeOptions') && null !== $object->getVolumeOptions()) { - $data['VolumeOptions'] = new \ArrayObject($this->normalizer->normalize($object->getVolumeOptions(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['VolumeOptions'] = $this->normalizer->normalize($object->getVolumeOptions(), 'json', $context); } if ($object->isInitialized('tmpfsOptions') && null !== $object->getTmpfsOptions()) { - $data['TmpfsOptions'] = new \ArrayObject($this->normalizer->normalize($object->getTmpfsOptions(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['TmpfsOptions'] = $this->normalizer->normalize($object->getTmpfsOptions(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -141,4 +138,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Mount' => false]; + } } diff --git a/src/Normalizer/MountPointNormalizer.php b/src/Normalizer/MountPointNormalizer.php index f482daad..678e7791 100644 --- a/src/Normalizer/MountPointNormalizer.php +++ b/src/Normalizer/MountPointNormalizer.php @@ -21,19 +21,16 @@ class MountPointNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\MountPoint' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\MountPoint' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -141,4 +138,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\MountPoint' => false]; + } } diff --git a/src/Normalizer/MountTmpfsOptionsNormalizer.php b/src/Normalizer/MountTmpfsOptionsNormalizer.php index 237eda7a..bdef9e59 100644 --- a/src/Normalizer/MountTmpfsOptionsNormalizer.php +++ b/src/Normalizer/MountTmpfsOptionsNormalizer.php @@ -21,19 +21,16 @@ class MountTmpfsOptionsNormalizer implements DenormalizerInterface, NormalizerIn use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\MountTmpfsOptions' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\MountTmpfsOptions' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\MountTmpfsOptions' => false]; + } } diff --git a/src/Normalizer/MountVolumeOptionsDriverConfigNormalizer.php b/src/Normalizer/MountVolumeOptionsDriverConfigNormalizer.php index 2e4d3e31..e71d2309 100644 --- a/src/Normalizer/MountVolumeOptionsDriverConfigNormalizer.php +++ b/src/Normalizer/MountVolumeOptionsDriverConfigNormalizer.php @@ -21,19 +21,16 @@ class MountVolumeOptionsDriverConfigNormalizer implements DenormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\MountVolumeOptionsDriverConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\MountVolumeOptionsDriverConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -81,7 +78,7 @@ public function normalize($object, $format = null, array $context = []) $data['Name'] = $object->getName(); } if ($object->isInitialized('options') && null !== $object->getOptions()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getOptions() as $key => $value) { $values[$key] = $value; } @@ -95,4 +92,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\MountVolumeOptionsDriverConfig' => false]; + } } diff --git a/src/Normalizer/MountVolumeOptionsNormalizer.php b/src/Normalizer/MountVolumeOptionsNormalizer.php index 91957a52..c17ea9cb 100644 --- a/src/Normalizer/MountVolumeOptionsNormalizer.php +++ b/src/Normalizer/MountVolumeOptionsNormalizer.php @@ -21,19 +21,16 @@ class MountVolumeOptionsNormalizer implements DenormalizerInterface, NormalizerI use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\MountVolumeOptions' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\MountVolumeOptions' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,14 +84,14 @@ public function normalize($object, $format = null, array $context = []) $data['NoCopy'] = $object->getNoCopy(); } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getLabels() as $key => $value) { $values[$key] = $value; } $data['Labels'] = $values; } if ($object->isInitialized('driverConfig') && null !== $object->getDriverConfig()) { - $data['DriverConfig'] = new \ArrayObject($this->normalizer->normalize($object->getDriverConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['DriverConfig'] = $this->normalizer->normalize($object->getDriverConfig(), 'json', $context); } foreach ($object as $key_1 => $value_1) { if (preg_match('/.*/', (string) $key_1)) { @@ -104,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\MountVolumeOptions' => false]; + } } diff --git a/src/Normalizer/NetworkAttachmentConfigNormalizer.php b/src/Normalizer/NetworkAttachmentConfigNormalizer.php index d924a314..1258aa8e 100644 --- a/src/Normalizer/NetworkAttachmentConfigNormalizer.php +++ b/src/Normalizer/NetworkAttachmentConfigNormalizer.php @@ -21,19 +21,16 @@ class NetworkAttachmentConfigNormalizer implements DenormalizerInterface, Normal use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\NetworkAttachmentConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\NetworkAttachmentConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -98,7 +95,7 @@ public function normalize($object, $format = null, array $context = []) $data['Aliases'] = $values; } if ($object->isInitialized('driverOpts') && null !== $object->getDriverOpts()) { - $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_1 = []; foreach ($object->getDriverOpts() as $key => $value_1) { $values_1[$key] = $value_1; } @@ -112,4 +109,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\NetworkAttachmentConfig' => false]; + } } diff --git a/src/Normalizer/NetworkContainerNormalizer.php b/src/Normalizer/NetworkContainerNormalizer.php index 4562cda5..4ccbfd44 100644 --- a/src/Normalizer/NetworkContainerNormalizer.php +++ b/src/Normalizer/NetworkContainerNormalizer.php @@ -21,19 +21,16 @@ class NetworkContainerNormalizer implements DenormalizerInterface, NormalizerInt use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\NetworkContainer' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\NetworkContainer' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -114,4 +111,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\NetworkContainer' => false]; + } } diff --git a/src/Normalizer/NetworkNormalizer.php b/src/Normalizer/NetworkNormalizer.php index 973d0d7f..e1b1fee0 100644 --- a/src/Normalizer/NetworkNormalizer.php +++ b/src/Normalizer/NetworkNormalizer.php @@ -21,19 +21,16 @@ class NetworkNormalizer implements DenormalizerInterface, NormalizerInterface, D use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Network' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Network' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -170,7 +167,7 @@ public function normalize($object, $format = null, array $context = []) $data['EnableIPv6'] = $object->getEnableIPv6(); } if ($object->isInitialized('iPAM') && null !== $object->getIPAM()) { - $data['IPAM'] = new \ArrayObject($this->normalizer->normalize($object->getIPAM(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['IPAM'] = $this->normalizer->normalize($object->getIPAM(), 'json', $context); } if ($object->isInitialized('internal') && null !== $object->getInternal()) { $data['Internal'] = $object->getInternal(); @@ -182,21 +179,21 @@ public function normalize($object, $format = null, array $context = []) $data['Ingress'] = $object->getIngress(); } if ($object->isInitialized('containers') && null !== $object->getContainers()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getContainers() as $key => $value) { - $values[$key] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[$key] = $this->normalizer->normalize($value, 'json', $context); } $data['Containers'] = $values; } if ($object->isInitialized('options') && null !== $object->getOptions()) { - $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_1 = []; foreach ($object->getOptions() as $key_1 => $value_1) { $values_1[$key_1] = $value_1; } $data['Options'] = $values_1; } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values_2 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_2 = []; foreach ($object->getLabels() as $key_2 => $value_2) { $values_2[$key_2] = $value_2; } @@ -210,4 +207,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Network' => false]; + } } diff --git a/src/Normalizer/NetworkSettingsNormalizer.php b/src/Normalizer/NetworkSettingsNormalizer.php index 3b6885bf..7a89cf71 100644 --- a/src/Normalizer/NetworkSettingsNormalizer.php +++ b/src/Normalizer/NetworkSettingsNormalizer.php @@ -21,19 +21,16 @@ class NetworkSettingsNormalizer implements DenormalizerInterface, NormalizerInte use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\NetworkSettings' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\NetworkSettings' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -209,7 +206,7 @@ public function normalize($object, $format = null, array $context = []) $data['LinkLocalIPv6PrefixLen'] = $object->getLinkLocalIPv6PrefixLen(); } if ($object->isInitialized('ports') && null !== $object->getPorts()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getPorts() as $key => $value) { if (null === $value) { $values[$key] = null; @@ -217,7 +214,7 @@ public function normalize($object, $format = null, array $context = []) } $values_1 = []; foreach ($value as $value_1) { - $values_1[] = new \ArrayObject($this->normalizer->normalize($value_1, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); } $values[$key] = $values_1; } @@ -229,14 +226,14 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('secondaryIPAddresses') && null !== $object->getSecondaryIPAddresses()) { $values_2 = []; foreach ($object->getSecondaryIPAddresses() as $value_2) { - $values_2[] = new \ArrayObject($this->normalizer->normalize($value_2, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); } $data['SecondaryIPAddresses'] = $values_2; } if ($object->isInitialized('secondaryIPv6Addresses') && null !== $object->getSecondaryIPv6Addresses()) { $values_3 = []; foreach ($object->getSecondaryIPv6Addresses() as $value_3) { - $values_3[] = new \ArrayObject($this->normalizer->normalize($value_3, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); } $data['SecondaryIPv6Addresses'] = $values_3; } @@ -265,9 +262,9 @@ public function normalize($object, $format = null, array $context = []) $data['MacAddress'] = $object->getMacAddress(); } if ($object->isInitialized('networks') && null !== $object->getNetworks()) { - $values_4 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_4 = []; foreach ($object->getNetworks() as $key_1 => $value_4) { - $values_4[$key_1] = new \ArrayObject($this->normalizer->normalize($value_4, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_4[$key_1] = $this->normalizer->normalize($value_4, 'json', $context); } $data['Networks'] = $values_4; } @@ -279,4 +276,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\NetworkSettings' => false]; + } } diff --git a/src/Normalizer/NetworkingConfigNormalizer.php b/src/Normalizer/NetworkingConfigNormalizer.php index 79de8487..042c2bdb 100644 --- a/src/Normalizer/NetworkingConfigNormalizer.php +++ b/src/Normalizer/NetworkingConfigNormalizer.php @@ -21,19 +21,16 @@ class NetworkingConfigNormalizer implements DenormalizerInterface, NormalizerInt use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\NetworkingConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\NetworkingConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -72,9 +69,9 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('endpointsConfig') && null !== $object->getEndpointsConfig()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getEndpointsConfig() as $key => $value) { - $values[$key] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[$key] = $this->normalizer->normalize($value, 'json', $context); } $data['EndpointsConfig'] = $values; } @@ -86,4 +83,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\NetworkingConfig' => false]; + } } diff --git a/src/Normalizer/NetworksCreatePostBodyNormalizer.php b/src/Normalizer/NetworksCreatePostBodyNormalizer.php index 26d35b96..ed4d5daa 100644 --- a/src/Normalizer/NetworksCreatePostBodyNormalizer.php +++ b/src/Normalizer/NetworksCreatePostBodyNormalizer.php @@ -21,19 +21,16 @@ class NetworksCreatePostBodyNormalizer implements DenormalizerInterface, Normali use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\NetworksCreatePostBody' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\NetworksCreatePostBody' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -146,20 +143,20 @@ public function normalize($object, $format = null, array $context = []) $data['Ingress'] = $object->getIngress(); } if ($object->isInitialized('iPAM') && null !== $object->getIPAM()) { - $data['IPAM'] = new \ArrayObject($this->normalizer->normalize($object->getIPAM(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['IPAM'] = $this->normalizer->normalize($object->getIPAM(), 'json', $context); } if ($object->isInitialized('enableIPv6') && null !== $object->getEnableIPv6()) { $data['EnableIPv6'] = $object->getEnableIPv6(); } if ($object->isInitialized('options') && null !== $object->getOptions()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getOptions() as $key => $value) { $values[$key] = $value; } $data['Options'] = $values; } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_1 = []; foreach ($object->getLabels() as $key_1 => $value_1) { $values_1[$key_1] = $value_1; } @@ -173,4 +170,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\NetworksCreatePostBody' => false]; + } } diff --git a/src/Normalizer/NetworksCreatePostResponse201Normalizer.php b/src/Normalizer/NetworksCreatePostResponse201Normalizer.php index 03416872..bd875462 100644 --- a/src/Normalizer/NetworksCreatePostResponse201Normalizer.php +++ b/src/Normalizer/NetworksCreatePostResponse201Normalizer.php @@ -21,19 +21,16 @@ class NetworksCreatePostResponse201Normalizer implements DenormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\NetworksCreatePostResponse201' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\NetworksCreatePostResponse201' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\NetworksCreatePostResponse201' => false]; + } } diff --git a/src/Normalizer/NetworksIdConnectPostBodyNormalizer.php b/src/Normalizer/NetworksIdConnectPostBodyNormalizer.php index 14218069..bb2e10c3 100644 --- a/src/Normalizer/NetworksIdConnectPostBodyNormalizer.php +++ b/src/Normalizer/NetworksIdConnectPostBodyNormalizer.php @@ -21,19 +21,16 @@ class NetworksIdConnectPostBodyNormalizer implements DenormalizerInterface, Norm use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\NetworksIdConnectPostBody' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\NetworksIdConnectPostBody' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -77,7 +74,7 @@ public function normalize($object, $format = null, array $context = []) $data['Container'] = $object->getContainer(); } if ($object->isInitialized('endpointConfig') && null !== $object->getEndpointConfig()) { - $data['EndpointConfig'] = new \ArrayObject($this->normalizer->normalize($object->getEndpointConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['EndpointConfig'] = $this->normalizer->normalize($object->getEndpointConfig(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\NetworksIdConnectPostBody' => false]; + } } diff --git a/src/Normalizer/NetworksIdDisconnectPostBodyNormalizer.php b/src/Normalizer/NetworksIdDisconnectPostBodyNormalizer.php index dd73c6db..a5d51937 100644 --- a/src/Normalizer/NetworksIdDisconnectPostBodyNormalizer.php +++ b/src/Normalizer/NetworksIdDisconnectPostBodyNormalizer.php @@ -21,19 +21,16 @@ class NetworksIdDisconnectPostBodyNormalizer implements DenormalizerInterface, N use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\NetworksIdDisconnectPostBody' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\NetworksIdDisconnectPostBody' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\NetworksIdDisconnectPostBody' => false]; + } } diff --git a/src/Normalizer/NetworksPrunePostResponse200Normalizer.php b/src/Normalizer/NetworksPrunePostResponse200Normalizer.php index 826ce0d3..efe7ff55 100644 --- a/src/Normalizer/NetworksPrunePostResponse200Normalizer.php +++ b/src/Normalizer/NetworksPrunePostResponse200Normalizer.php @@ -21,19 +21,16 @@ class NetworksPrunePostResponse200Normalizer implements DenormalizerInterface, N use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\NetworksPrunePostResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\NetworksPrunePostResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -86,4 +83,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\NetworksPrunePostResponse200' => false]; + } } diff --git a/src/Normalizer/NodeDescriptionNormalizer.php b/src/Normalizer/NodeDescriptionNormalizer.php index 4b66533f..126790cb 100644 --- a/src/Normalizer/NodeDescriptionNormalizer.php +++ b/src/Normalizer/NodeDescriptionNormalizer.php @@ -21,19 +21,16 @@ class NodeDescriptionNormalizer implements DenormalizerInterface, NormalizerInte use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\NodeDescription' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\NodeDescription' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -95,16 +92,16 @@ public function normalize($object, $format = null, array $context = []) $data['Hostname'] = $object->getHostname(); } if ($object->isInitialized('platform') && null !== $object->getPlatform()) { - $data['Platform'] = new \ArrayObject($this->normalizer->normalize($object->getPlatform(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Platform'] = $this->normalizer->normalize($object->getPlatform(), 'json', $context); } if ($object->isInitialized('resources') && null !== $object->getResources()) { - $data['Resources'] = new \ArrayObject($this->normalizer->normalize($object->getResources(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Resources'] = $this->normalizer->normalize($object->getResources(), 'json', $context); } if ($object->isInitialized('engine') && null !== $object->getEngine()) { - $data['Engine'] = new \ArrayObject($this->normalizer->normalize($object->getEngine(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Engine'] = $this->normalizer->normalize($object->getEngine(), 'json', $context); } if ($object->isInitialized('tLSInfo') && null !== $object->getTLSInfo()) { - $data['TLSInfo'] = new \ArrayObject($this->normalizer->normalize($object->getTLSInfo(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['TLSInfo'] = $this->normalizer->normalize($object->getTLSInfo(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -114,4 +111,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\NodeDescription' => false]; + } } diff --git a/src/Normalizer/NodeNormalizer.php b/src/Normalizer/NodeNormalizer.php index afce084c..9d2d8baa 100644 --- a/src/Normalizer/NodeNormalizer.php +++ b/src/Normalizer/NodeNormalizer.php @@ -21,19 +21,16 @@ class NodeNormalizer implements DenormalizerInterface, NormalizerInterface, Deno use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Node' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Node' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -113,7 +110,7 @@ public function normalize($object, $format = null, array $context = []) $data['ID'] = $object->getID(); } if ($object->isInitialized('version') && null !== $object->getVersion()) { - $data['Version'] = new \ArrayObject($this->normalizer->normalize($object->getVersion(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Version'] = $this->normalizer->normalize($object->getVersion(), 'json', $context); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { $data['CreatedAt'] = $object->getCreatedAt(); @@ -122,16 +119,16 @@ public function normalize($object, $format = null, array $context = []) $data['UpdatedAt'] = $object->getUpdatedAt(); } if ($object->isInitialized('spec') && null !== $object->getSpec()) { - $data['Spec'] = new \ArrayObject($this->normalizer->normalize($object->getSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Spec'] = $this->normalizer->normalize($object->getSpec(), 'json', $context); } if ($object->isInitialized('description') && null !== $object->getDescription()) { - $data['Description'] = new \ArrayObject($this->normalizer->normalize($object->getDescription(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Description'] = $this->normalizer->normalize($object->getDescription(), 'json', $context); } if ($object->isInitialized('status') && null !== $object->getStatus()) { - $data['Status'] = new \ArrayObject($this->normalizer->normalize($object->getStatus(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Status'] = $this->normalizer->normalize($object->getStatus(), 'json', $context); } if ($object->isInitialized('managerStatus') && null !== $object->getManagerStatus()) { - $data['ManagerStatus'] = new \ArrayObject($this->normalizer->normalize($object->getManagerStatus(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['ManagerStatus'] = $this->normalizer->normalize($object->getManagerStatus(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -141,4 +138,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Node' => false]; + } } diff --git a/src/Normalizer/NodeSpecNormalizer.php b/src/Normalizer/NodeSpecNormalizer.php index f48ef491..0f42dcc9 100644 --- a/src/Normalizer/NodeSpecNormalizer.php +++ b/src/Normalizer/NodeSpecNormalizer.php @@ -21,19 +21,16 @@ class NodeSpecNormalizer implements DenormalizerInterface, NormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\NodeSpec' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\NodeSpec' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -93,7 +90,7 @@ public function normalize($object, $format = null, array $context = []) $data['Name'] = $object->getName(); } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getLabels() as $key => $value) { $values[$key] = $value; } @@ -113,4 +110,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\NodeSpec' => false]; + } } diff --git a/src/Normalizer/NodeStatusNormalizer.php b/src/Normalizer/NodeStatusNormalizer.php index 6cc36235..075978f1 100644 --- a/src/Normalizer/NodeStatusNormalizer.php +++ b/src/Normalizer/NodeStatusNormalizer.php @@ -21,19 +21,16 @@ class NodeStatusNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\NodeStatus' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\NodeStatus' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -96,4 +93,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\NodeStatus' => false]; + } } diff --git a/src/Normalizer/ObjectVersionNormalizer.php b/src/Normalizer/ObjectVersionNormalizer.php index a4344d1c..ba69f94f 100644 --- a/src/Normalizer/ObjectVersionNormalizer.php +++ b/src/Normalizer/ObjectVersionNormalizer.php @@ -21,19 +21,16 @@ class ObjectVersionNormalizer implements DenormalizerInterface, NormalizerInterf use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ObjectVersion' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ObjectVersion' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -78,4 +75,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ObjectVersion' => false]; + } } diff --git a/src/Normalizer/PeerNodeNormalizer.php b/src/Normalizer/PeerNodeNormalizer.php index 4403f66c..80a322e5 100644 --- a/src/Normalizer/PeerNodeNormalizer.php +++ b/src/Normalizer/PeerNodeNormalizer.php @@ -21,19 +21,16 @@ class PeerNodeNormalizer implements DenormalizerInterface, NormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PeerNode' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PeerNode' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PeerNode' => false]; + } } diff --git a/src/Normalizer/PlatformNormalizer.php b/src/Normalizer/PlatformNormalizer.php index 6aac4356..2206b1d0 100644 --- a/src/Normalizer/PlatformNormalizer.php +++ b/src/Normalizer/PlatformNormalizer.php @@ -21,19 +21,16 @@ class PlatformNormalizer implements DenormalizerInterface, NormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Platform' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Platform' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Platform' => false]; + } } diff --git a/src/Normalizer/PluginConfigArgsNormalizer.php b/src/Normalizer/PluginConfigArgsNormalizer.php index 62bf75fd..0da1d48c 100644 --- a/src/Normalizer/PluginConfigArgsNormalizer.php +++ b/src/Normalizer/PluginConfigArgsNormalizer.php @@ -21,19 +21,16 @@ class PluginConfigArgsNormalizer implements DenormalizerInterface, NormalizerInt use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PluginConfigArgs' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PluginConfigArgs' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -113,4 +110,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PluginConfigArgs' => false]; + } } diff --git a/src/Normalizer/PluginConfigInterfaceNormalizer.php b/src/Normalizer/PluginConfigInterfaceNormalizer.php index 9f618332..45d89ed7 100644 --- a/src/Normalizer/PluginConfigInterfaceNormalizer.php +++ b/src/Normalizer/PluginConfigInterfaceNormalizer.php @@ -21,19 +21,16 @@ class PluginConfigInterfaceNormalizer implements DenormalizerInterface, Normaliz use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PluginConfigInterface' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PluginConfigInterface' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -85,7 +82,7 @@ public function normalize($object, $format = null, array $context = []) $data = []; $values = []; foreach ($object->getTypes() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['Types'] = $values; $data['Socket'] = $object->getSocket(); @@ -100,4 +97,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PluginConfigInterface' => false]; + } } diff --git a/src/Normalizer/PluginConfigLinuxNormalizer.php b/src/Normalizer/PluginConfigLinuxNormalizer.php index 6c6a00ee..0f8bdee9 100644 --- a/src/Normalizer/PluginConfigLinuxNormalizer.php +++ b/src/Normalizer/PluginConfigLinuxNormalizer.php @@ -21,19 +21,16 @@ class PluginConfigLinuxNormalizer implements DenormalizerInterface, NormalizerIn use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PluginConfigLinux' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PluginConfigLinux' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -95,7 +92,7 @@ public function normalize($object, $format = null, array $context = []) $data['AllowAllDevices'] = $object->getAllowAllDevices(); $values_1 = []; foreach ($object->getDevices() as $value_1) { - $values_1[] = new \ArrayObject($this->normalizer->normalize($value_1, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); } $data['Devices'] = $values_1; foreach ($object as $key => $value_2) { @@ -106,4 +103,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PluginConfigLinux' => false]; + } } diff --git a/src/Normalizer/PluginConfigNetworkNormalizer.php b/src/Normalizer/PluginConfigNetworkNormalizer.php index 544ba13d..dd708d9f 100644 --- a/src/Normalizer/PluginConfigNetworkNormalizer.php +++ b/src/Normalizer/PluginConfigNetworkNormalizer.php @@ -21,19 +21,16 @@ class PluginConfigNetworkNormalizer implements DenormalizerInterface, Normalizer use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PluginConfigNetwork' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PluginConfigNetwork' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -76,4 +73,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PluginConfigNetwork' => false]; + } } diff --git a/src/Normalizer/PluginConfigNormalizer.php b/src/Normalizer/PluginConfigNormalizer.php index ae1d8cd7..0b5dcd7c 100644 --- a/src/Normalizer/PluginConfigNormalizer.php +++ b/src/Normalizer/PluginConfigNormalizer.php @@ -21,19 +21,16 @@ class PluginConfigNormalizer implements DenormalizerInterface, NormalizerInterfa use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PluginConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PluginConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -174,7 +171,7 @@ public function normalize($object, $format = null, array $context = []) } $data['Description'] = $object->getDescription(); $data['Documentation'] = $object->getDocumentation(); - $data['Interface'] = new \ArrayObject($this->normalizer->normalize($object->getInterface(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Interface'] = $this->normalizer->normalize($object->getInterface(), 'json', $context); $values = []; foreach ($object->getEntrypoint() as $value) { $values[] = $value; @@ -182,26 +179,26 @@ public function normalize($object, $format = null, array $context = []) $data['Entrypoint'] = $values; $data['WorkDir'] = $object->getWorkDir(); if ($object->isInitialized('user') && null !== $object->getUser()) { - $data['User'] = new \ArrayObject($this->normalizer->normalize($object->getUser(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['User'] = $this->normalizer->normalize($object->getUser(), 'json', $context); } - $data['Network'] = new \ArrayObject($this->normalizer->normalize($object->getNetwork(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); - $data['Linux'] = new \ArrayObject($this->normalizer->normalize($object->getLinux(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + $data['Linux'] = $this->normalizer->normalize($object->getLinux(), 'json', $context); $data['PropagatedMount'] = $object->getPropagatedMount(); $data['IpcHost'] = $object->getIpcHost(); $data['PidHost'] = $object->getPidHost(); $values_1 = []; foreach ($object->getMounts() as $value_1) { - $values_1[] = new \ArrayObject($this->normalizer->normalize($value_1, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); } $data['Mounts'] = $values_1; $values_2 = []; foreach ($object->getEnv() as $value_2) { - $values_2[] = new \ArrayObject($this->normalizer->normalize($value_2, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); } $data['Env'] = $values_2; - $data['Args'] = new \ArrayObject($this->normalizer->normalize($object->getArgs(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Args'] = $this->normalizer->normalize($object->getArgs(), 'json', $context); if ($object->isInitialized('rootfs') && null !== $object->getRootfs()) { - $data['rootfs'] = new \ArrayObject($this->normalizer->normalize($object->getRootfs(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['rootfs'] = $this->normalizer->normalize($object->getRootfs(), 'json', $context); } foreach ($object as $key => $value_3) { if (preg_match('/.*/', (string) $key)) { @@ -211,4 +208,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PluginConfig' => false]; + } } diff --git a/src/Normalizer/PluginConfigRootfsNormalizer.php b/src/Normalizer/PluginConfigRootfsNormalizer.php index f14ae20c..925cff87 100644 --- a/src/Normalizer/PluginConfigRootfsNormalizer.php +++ b/src/Normalizer/PluginConfigRootfsNormalizer.php @@ -21,19 +21,16 @@ class PluginConfigRootfsNormalizer implements DenormalizerInterface, NormalizerI use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PluginConfigRootfs' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PluginConfigRootfs' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -95,4 +92,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PluginConfigRootfs' => false]; + } } diff --git a/src/Normalizer/PluginConfigUserNormalizer.php b/src/Normalizer/PluginConfigUserNormalizer.php index 4a6ff31e..53b74993 100644 --- a/src/Normalizer/PluginConfigUserNormalizer.php +++ b/src/Normalizer/PluginConfigUserNormalizer.php @@ -21,19 +21,16 @@ class PluginConfigUserNormalizer implements DenormalizerInterface, NormalizerInt use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PluginConfigUser' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PluginConfigUser' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PluginConfigUser' => false]; + } } diff --git a/src/Normalizer/PluginDeviceNormalizer.php b/src/Normalizer/PluginDeviceNormalizer.php index f5989041..9f602ebe 100644 --- a/src/Normalizer/PluginDeviceNormalizer.php +++ b/src/Normalizer/PluginDeviceNormalizer.php @@ -21,19 +21,16 @@ class PluginDeviceNormalizer implements DenormalizerInterface, NormalizerInterfa use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PluginDevice' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PluginDevice' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -105,4 +102,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PluginDevice' => false]; + } } diff --git a/src/Normalizer/PluginEnvNormalizer.php b/src/Normalizer/PluginEnvNormalizer.php index c5b160d5..d66ff685 100644 --- a/src/Normalizer/PluginEnvNormalizer.php +++ b/src/Normalizer/PluginEnvNormalizer.php @@ -21,19 +21,16 @@ class PluginEnvNormalizer implements DenormalizerInterface, NormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PluginEnv' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PluginEnv' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -105,4 +102,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PluginEnv' => false]; + } } diff --git a/src/Normalizer/PluginInterfaceTypeNormalizer.php b/src/Normalizer/PluginInterfaceTypeNormalizer.php index 1a546fc4..81d6c4fe 100644 --- a/src/Normalizer/PluginInterfaceTypeNormalizer.php +++ b/src/Normalizer/PluginInterfaceTypeNormalizer.php @@ -21,19 +21,16 @@ class PluginInterfaceTypeNormalizer implements DenormalizerInterface, Normalizer use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PluginInterfaceType' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PluginInterfaceType' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -90,4 +87,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PluginInterfaceType' => false]; + } } diff --git a/src/Normalizer/PluginMountNormalizer.php b/src/Normalizer/PluginMountNormalizer.php index 8147685c..81f59816 100644 --- a/src/Normalizer/PluginMountNormalizer.php +++ b/src/Normalizer/PluginMountNormalizer.php @@ -21,19 +21,16 @@ class PluginMountNormalizer implements DenormalizerInterface, NormalizerInterfac use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PluginMount' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PluginMount' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -134,4 +131,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PluginMount' => false]; + } } diff --git a/src/Normalizer/PluginNormalizer.php b/src/Normalizer/PluginNormalizer.php index 950ea0b5..b2848cbc 100644 --- a/src/Normalizer/PluginNormalizer.php +++ b/src/Normalizer/PluginNormalizer.php @@ -21,19 +21,16 @@ class PluginNormalizer implements DenormalizerInterface, NormalizerInterface, De use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Plugin' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Plugin' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -102,11 +99,11 @@ public function normalize($object, $format = null, array $context = []) } $data['Name'] = $object->getName(); $data['Enabled'] = $object->getEnabled(); - $data['Settings'] = new \ArrayObject($this->normalizer->normalize($object->getSettings(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Settings'] = $this->normalizer->normalize($object->getSettings(), 'json', $context); if ($object->isInitialized('pluginReference') && null !== $object->getPluginReference()) { $data['PluginReference'] = $object->getPluginReference(); } - $data['Config'] = new \ArrayObject($this->normalizer->normalize($object->getConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Config'] = $this->normalizer->normalize($object->getConfig(), 'json', $context); foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { $data[$key] = $value; @@ -115,4 +112,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Plugin' => false]; + } } diff --git a/src/Normalizer/PluginSettingsNormalizer.php b/src/Normalizer/PluginSettingsNormalizer.php index 77d14066..21bb5633 100644 --- a/src/Normalizer/PluginSettingsNormalizer.php +++ b/src/Normalizer/PluginSettingsNormalizer.php @@ -21,19 +21,16 @@ class PluginSettingsNormalizer implements DenormalizerInterface, NormalizerInter use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PluginSettings' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PluginSettings' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -103,7 +100,7 @@ public function normalize($object, $format = null, array $context = []) $data = []; $values = []; foreach ($object->getMounts() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['Mounts'] = $values; $values_1 = []; @@ -118,7 +115,7 @@ public function normalize($object, $format = null, array $context = []) $data['Args'] = $values_2; $values_3 = []; foreach ($object->getDevices() as $value_3) { - $values_3[] = new \ArrayObject($this->normalizer->normalize($value_3, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); } $data['Devices'] = $values_3; foreach ($object as $key => $value_4) { @@ -129,4 +126,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PluginSettings' => false]; + } } diff --git a/src/Normalizer/PluginsInfoNormalizer.php b/src/Normalizer/PluginsInfoNormalizer.php index 7afa8099..6c100685 100644 --- a/src/Normalizer/PluginsInfoNormalizer.php +++ b/src/Normalizer/PluginsInfoNormalizer.php @@ -21,19 +21,16 @@ class PluginsInfoNormalizer implements DenormalizerInterface, NormalizerInterfac use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PluginsInfo' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PluginsInfo' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -137,4 +134,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PluginsInfo' => false]; + } } diff --git a/src/Normalizer/PluginsNameUpgradePostBodyItemNormalizer.php b/src/Normalizer/PluginsNameUpgradePostBodyItemNormalizer.php index 80a321d5..24cf197a 100644 --- a/src/Normalizer/PluginsNameUpgradePostBodyItemNormalizer.php +++ b/src/Normalizer/PluginsNameUpgradePostBodyItemNormalizer.php @@ -21,19 +21,16 @@ class PluginsNameUpgradePostBodyItemNormalizer implements DenormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PluginsNameUpgradePostBodyItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PluginsNameUpgradePostBodyItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -104,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PluginsNameUpgradePostBodyItem' => false]; + } } diff --git a/src/Normalizer/PluginsPrivilegesGetJsonResponse200ItemNormalizer.php b/src/Normalizer/PluginsPrivilegesGetJsonResponse200ItemNormalizer.php index 7187a5e3..0f586f0e 100644 --- a/src/Normalizer/PluginsPrivilegesGetJsonResponse200ItemNormalizer.php +++ b/src/Normalizer/PluginsPrivilegesGetJsonResponse200ItemNormalizer.php @@ -21,19 +21,16 @@ class PluginsPrivilegesGetJsonResponse200ItemNormalizer implements DenormalizerI use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PluginsPrivilegesGetJsonResponse200Item' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PluginsPrivilegesGetJsonResponse200Item' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -104,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PluginsPrivilegesGetJsonResponse200Item' => false]; + } } diff --git a/src/Normalizer/PluginsPrivilegesGetTextplainResponse200ItemNormalizer.php b/src/Normalizer/PluginsPrivilegesGetTextplainResponse200ItemNormalizer.php index ad167bff..3e1424c6 100644 --- a/src/Normalizer/PluginsPrivilegesGetTextplainResponse200ItemNormalizer.php +++ b/src/Normalizer/PluginsPrivilegesGetTextplainResponse200ItemNormalizer.php @@ -21,19 +21,16 @@ class PluginsPrivilegesGetTextplainResponse200ItemNormalizer implements Denormal use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PluginsPrivilegesGetTextplainResponse200Item' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PluginsPrivilegesGetTextplainResponse200Item' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -104,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PluginsPrivilegesGetTextplainResponse200Item' => false]; + } } diff --git a/src/Normalizer/PluginsPullPostBodyItemNormalizer.php b/src/Normalizer/PluginsPullPostBodyItemNormalizer.php index c095db83..5f27dcfd 100644 --- a/src/Normalizer/PluginsPullPostBodyItemNormalizer.php +++ b/src/Normalizer/PluginsPullPostBodyItemNormalizer.php @@ -21,19 +21,16 @@ class PluginsPullPostBodyItemNormalizer implements DenormalizerInterface, Normal use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PluginsPullPostBodyItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PluginsPullPostBodyItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -104,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PluginsPullPostBodyItem' => false]; + } } diff --git a/src/Normalizer/PortBindingNormalizer.php b/src/Normalizer/PortBindingNormalizer.php index ac2288f5..fe6dc7bb 100644 --- a/src/Normalizer/PortBindingNormalizer.php +++ b/src/Normalizer/PortBindingNormalizer.php @@ -21,19 +21,16 @@ class PortBindingNormalizer implements DenormalizerInterface, NormalizerInterfac use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PortBinding' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PortBinding' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PortBinding' => false]; + } } diff --git a/src/Normalizer/PortNormalizer.php b/src/Normalizer/PortNormalizer.php index 71bd8f7b..e23db2f9 100644 --- a/src/Normalizer/PortNormalizer.php +++ b/src/Normalizer/PortNormalizer.php @@ -21,19 +21,16 @@ class PortNormalizer implements DenormalizerInterface, NormalizerInterface, Deno use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Port' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Port' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -101,4 +98,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Port' => false]; + } } diff --git a/src/Normalizer/ProcessConfigNormalizer.php b/src/Normalizer/ProcessConfigNormalizer.php index 6bf91967..df87ca60 100644 --- a/src/Normalizer/ProcessConfigNormalizer.php +++ b/src/Normalizer/ProcessConfigNormalizer.php @@ -21,19 +21,16 @@ class ProcessConfigNormalizer implements DenormalizerInterface, NormalizerInterf use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ProcessConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ProcessConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -122,4 +119,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ProcessConfig' => false]; + } } diff --git a/src/Normalizer/ProgressDetailNormalizer.php b/src/Normalizer/ProgressDetailNormalizer.php index 9814c9ea..4cb4e17b 100644 --- a/src/Normalizer/ProgressDetailNormalizer.php +++ b/src/Normalizer/ProgressDetailNormalizer.php @@ -21,19 +21,16 @@ class ProgressDetailNormalizer implements DenormalizerInterface, NormalizerInter use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ProgressDetail' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ProgressDetail' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ProgressDetail' => false]; + } } diff --git a/src/Normalizer/PushImageInfoNormalizer.php b/src/Normalizer/PushImageInfoNormalizer.php index 8ff61b15..8b980094 100644 --- a/src/Normalizer/PushImageInfoNormalizer.php +++ b/src/Normalizer/PushImageInfoNormalizer.php @@ -21,19 +21,16 @@ class PushImageInfoNormalizer implements DenormalizerInterface, NormalizerInterf use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\PushImageInfo' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\PushImageInfo' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -95,7 +92,7 @@ public function normalize($object, $format = null, array $context = []) $data['progress'] = $object->getProgress(); } if ($object->isInitialized('progressDetail') && null !== $object->getProgressDetail()) { - $data['progressDetail'] = new \ArrayObject($this->normalizer->normalize($object->getProgressDetail(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['progressDetail'] = $this->normalizer->normalize($object->getProgressDetail(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -105,4 +102,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\PushImageInfo' => false]; + } } diff --git a/src/Normalizer/RegistryServiceConfigNormalizer.php b/src/Normalizer/RegistryServiceConfigNormalizer.php index e32ec3db..80107701 100644 --- a/src/Normalizer/RegistryServiceConfigNormalizer.php +++ b/src/Normalizer/RegistryServiceConfigNormalizer.php @@ -21,19 +21,16 @@ class RegistryServiceConfigNormalizer implements DenormalizerInterface, Normaliz use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\RegistryServiceConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\RegistryServiceConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -133,9 +130,9 @@ public function normalize($object, $format = null, array $context = []) $data['InsecureRegistryCIDRs'] = $values_2; } if ($object->isInitialized('indexConfigs') && null !== $object->getIndexConfigs()) { - $values_3 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_3 = []; foreach ($object->getIndexConfigs() as $key => $value_3) { - $values_3[$key] = new \ArrayObject($this->normalizer->normalize($value_3, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_3[$key] = $this->normalizer->normalize($value_3, 'json', $context); } $data['IndexConfigs'] = $values_3; } @@ -154,4 +151,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\RegistryServiceConfig' => false]; + } } diff --git a/src/Normalizer/ResourceObjectNormalizer.php b/src/Normalizer/ResourceObjectNormalizer.php index 41360010..c50ede6e 100644 --- a/src/Normalizer/ResourceObjectNormalizer.php +++ b/src/Normalizer/ResourceObjectNormalizer.php @@ -21,19 +21,16 @@ class ResourceObjectNormalizer implements DenormalizerInterface, NormalizerInter use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ResourceObject' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ResourceObject' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -92,7 +89,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('genericResources') && null !== $object->getGenericResources()) { $values = []; foreach ($object->getGenericResources() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['GenericResources'] = $values; } @@ -104,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ResourceObject' => false]; + } } diff --git a/src/Normalizer/ResourcesBlkioWeightDeviceItemNormalizer.php b/src/Normalizer/ResourcesBlkioWeightDeviceItemNormalizer.php index d3735cf1..0c83b504 100644 --- a/src/Normalizer/ResourcesBlkioWeightDeviceItemNormalizer.php +++ b/src/Normalizer/ResourcesBlkioWeightDeviceItemNormalizer.php @@ -21,19 +21,16 @@ class ResourcesBlkioWeightDeviceItemNormalizer implements DenormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ResourcesBlkioWeightDeviceItem' => false]; + } } diff --git a/src/Normalizer/ResourcesNormalizer.php b/src/Normalizer/ResourcesNormalizer.php index b9c15fa5..9dc9c92c 100644 --- a/src/Normalizer/ResourcesNormalizer.php +++ b/src/Normalizer/ResourcesNormalizer.php @@ -21,19 +21,16 @@ class ResourcesNormalizer implements DenormalizerInterface, NormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Resources' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Resources' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -304,35 +301,35 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('blkioWeightDevice') && null !== $object->getBlkioWeightDevice()) { $values = []; foreach ($object->getBlkioWeightDevice() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['BlkioWeightDevice'] = $values; } if ($object->isInitialized('blkioDeviceReadBps') && null !== $object->getBlkioDeviceReadBps()) { $values_1 = []; foreach ($object->getBlkioDeviceReadBps() as $value_1) { - $values_1[] = new \ArrayObject($this->normalizer->normalize($value_1, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); } $data['BlkioDeviceReadBps'] = $values_1; } if ($object->isInitialized('blkioDeviceWriteBps') && null !== $object->getBlkioDeviceWriteBps()) { $values_2 = []; foreach ($object->getBlkioDeviceWriteBps() as $value_2) { - $values_2[] = new \ArrayObject($this->normalizer->normalize($value_2, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); } $data['BlkioDeviceWriteBps'] = $values_2; } if ($object->isInitialized('blkioDeviceReadIOps') && null !== $object->getBlkioDeviceReadIOps()) { $values_3 = []; foreach ($object->getBlkioDeviceReadIOps() as $value_3) { - $values_3[] = new \ArrayObject($this->normalizer->normalize($value_3, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); } $data['BlkioDeviceReadIOps'] = $values_3; } if ($object->isInitialized('blkioDeviceWriteIOps') && null !== $object->getBlkioDeviceWriteIOps()) { $values_4 = []; foreach ($object->getBlkioDeviceWriteIOps() as $value_4) { - $values_4[] = new \ArrayObject($this->normalizer->normalize($value_4, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_4[] = $this->normalizer->normalize($value_4, 'json', $context); } $data['BlkioDeviceWriteIOps'] = $values_4; } @@ -357,7 +354,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('devices') && null !== $object->getDevices()) { $values_5 = []; foreach ($object->getDevices() as $value_5) { - $values_5[] = new \ArrayObject($this->normalizer->normalize($value_5, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_5[] = $this->normalizer->normalize($value_5, 'json', $context); } $data['Devices'] = $values_5; } @@ -371,7 +368,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('deviceRequests') && null !== $object->getDeviceRequests()) { $values_7 = []; foreach ($object->getDeviceRequests() as $value_7) { - $values_7[] = new \ArrayObject($this->normalizer->normalize($value_7, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_7[] = $this->normalizer->normalize($value_7, 'json', $context); } $data['DeviceRequests'] = $values_7; } @@ -405,7 +402,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('ulimits') && null !== $object->getUlimits()) { $values_8 = []; foreach ($object->getUlimits() as $value_8) { - $values_8[] = new \ArrayObject($this->normalizer->normalize($value_8, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_8[] = $this->normalizer->normalize($value_8, 'json', $context); } $data['Ulimits'] = $values_8; } @@ -429,4 +426,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Resources' => false]; + } } diff --git a/src/Normalizer/ResourcesUlimitsItemNormalizer.php b/src/Normalizer/ResourcesUlimitsItemNormalizer.php index 3592e5b3..420cb032 100644 --- a/src/Normalizer/ResourcesUlimitsItemNormalizer.php +++ b/src/Normalizer/ResourcesUlimitsItemNormalizer.php @@ -21,19 +21,16 @@ class ResourcesUlimitsItemNormalizer implements DenormalizerInterface, Normalize use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ResourcesUlimitsItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ResourcesUlimitsItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -96,4 +93,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ResourcesUlimitsItem' => false]; + } } diff --git a/src/Normalizer/RestartPolicyNormalizer.php b/src/Normalizer/RestartPolicyNormalizer.php index ba11b3c9..6cd9e4c4 100644 --- a/src/Normalizer/RestartPolicyNormalizer.php +++ b/src/Normalizer/RestartPolicyNormalizer.php @@ -21,19 +21,16 @@ class RestartPolicyNormalizer implements DenormalizerInterface, NormalizerInterf use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\RestartPolicy' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\RestartPolicy' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\RestartPolicy' => false]; + } } diff --git a/src/Normalizer/RuntimeNormalizer.php b/src/Normalizer/RuntimeNormalizer.php index e47a8bc0..67220ab8 100644 --- a/src/Normalizer/RuntimeNormalizer.php +++ b/src/Normalizer/RuntimeNormalizer.php @@ -21,19 +21,16 @@ class RuntimeNormalizer implements DenormalizerInterface, NormalizerInterface, D use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Runtime' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Runtime' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -95,4 +92,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Runtime' => false]; + } } diff --git a/src/Normalizer/SecretNormalizer.php b/src/Normalizer/SecretNormalizer.php index e0d8ad5a..d9e73f95 100644 --- a/src/Normalizer/SecretNormalizer.php +++ b/src/Normalizer/SecretNormalizer.php @@ -21,19 +21,16 @@ class SecretNormalizer implements DenormalizerInterface, NormalizerInterface, De use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Secret' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Secret' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -95,7 +92,7 @@ public function normalize($object, $format = null, array $context = []) $data['ID'] = $object->getID(); } if ($object->isInitialized('version') && null !== $object->getVersion()) { - $data['Version'] = new \ArrayObject($this->normalizer->normalize($object->getVersion(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Version'] = $this->normalizer->normalize($object->getVersion(), 'json', $context); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { $data['CreatedAt'] = $object->getCreatedAt(); @@ -104,7 +101,7 @@ public function normalize($object, $format = null, array $context = []) $data['UpdatedAt'] = $object->getUpdatedAt(); } if ($object->isInitialized('spec') && null !== $object->getSpec()) { - $data['Spec'] = new \ArrayObject($this->normalizer->normalize($object->getSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Spec'] = $this->normalizer->normalize($object->getSpec(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -114,4 +111,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Secret' => false]; + } } diff --git a/src/Normalizer/SecretSpecNormalizer.php b/src/Normalizer/SecretSpecNormalizer.php index 891de121..aee32f15 100644 --- a/src/Normalizer/SecretSpecNormalizer.php +++ b/src/Normalizer/SecretSpecNormalizer.php @@ -21,19 +21,16 @@ class SecretSpecNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SecretSpec' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SecretSpec' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -99,7 +96,7 @@ public function normalize($object, $format = null, array $context = []) $data['Name'] = $object->getName(); } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getLabels() as $key => $value) { $values[$key] = $value; } @@ -109,10 +106,10 @@ public function normalize($object, $format = null, array $context = []) $data['Data'] = $object->getData(); } if ($object->isInitialized('driver') && null !== $object->getDriver()) { - $data['Driver'] = new \ArrayObject($this->normalizer->normalize($object->getDriver(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Driver'] = $this->normalizer->normalize($object->getDriver(), 'json', $context); } if ($object->isInitialized('templating') && null !== $object->getTemplating()) { - $data['Templating'] = new \ArrayObject($this->normalizer->normalize($object->getTemplating(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Templating'] = $this->normalizer->normalize($object->getTemplating(), 'json', $context); } foreach ($object as $key_1 => $value_1) { if (preg_match('/.*/', (string) $key_1)) { @@ -122,4 +119,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SecretSpec' => false]; + } } diff --git a/src/Normalizer/SecretsCreatePostBodyNormalizer.php b/src/Normalizer/SecretsCreatePostBodyNormalizer.php index 314d1956..c471f8fb 100644 --- a/src/Normalizer/SecretsCreatePostBodyNormalizer.php +++ b/src/Normalizer/SecretsCreatePostBodyNormalizer.php @@ -21,19 +21,16 @@ class SecretsCreatePostBodyNormalizer implements DenormalizerInterface, Normaliz use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SecretsCreatePostBody' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SecretsCreatePostBody' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -99,7 +96,7 @@ public function normalize($object, $format = null, array $context = []) $data['Name'] = $object->getName(); } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getLabels() as $key => $value) { $values[$key] = $value; } @@ -109,10 +106,10 @@ public function normalize($object, $format = null, array $context = []) $data['Data'] = $object->getData(); } if ($object->isInitialized('driver') && null !== $object->getDriver()) { - $data['Driver'] = new \ArrayObject($this->normalizer->normalize($object->getDriver(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Driver'] = $this->normalizer->normalize($object->getDriver(), 'json', $context); } if ($object->isInitialized('templating') && null !== $object->getTemplating()) { - $data['Templating'] = new \ArrayObject($this->normalizer->normalize($object->getTemplating(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Templating'] = $this->normalizer->normalize($object->getTemplating(), 'json', $context); } foreach ($object as $key_1 => $value_1) { if (preg_match('/.*/', (string) $key_1)) { @@ -122,4 +119,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SecretsCreatePostBody' => false]; + } } diff --git a/src/Normalizer/ServiceEndpointNormalizer.php b/src/Normalizer/ServiceEndpointNormalizer.php index 091ab473..bda6ef7e 100644 --- a/src/Normalizer/ServiceEndpointNormalizer.php +++ b/src/Normalizer/ServiceEndpointNormalizer.php @@ -21,19 +21,16 @@ class ServiceEndpointNormalizer implements DenormalizerInterface, NormalizerInte use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ServiceEndpoint' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ServiceEndpoint' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -88,19 +85,19 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('spec') && null !== $object->getSpec()) { - $data['Spec'] = new \ArrayObject($this->normalizer->normalize($object->getSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Spec'] = $this->normalizer->normalize($object->getSpec(), 'json', $context); } if ($object->isInitialized('ports') && null !== $object->getPorts()) { $values = []; foreach ($object->getPorts() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['Ports'] = $values; } if ($object->isInitialized('virtualIPs') && null !== $object->getVirtualIPs()) { $values_1 = []; foreach ($object->getVirtualIPs() as $value_1) { - $values_1[] = new \ArrayObject($this->normalizer->normalize($value_1, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); } $data['VirtualIPs'] = $values_1; } @@ -112,4 +109,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ServiceEndpoint' => false]; + } } diff --git a/src/Normalizer/ServiceEndpointVirtualIPsItemNormalizer.php b/src/Normalizer/ServiceEndpointVirtualIPsItemNormalizer.php index 5ab46526..fe0841fb 100644 --- a/src/Normalizer/ServiceEndpointVirtualIPsItemNormalizer.php +++ b/src/Normalizer/ServiceEndpointVirtualIPsItemNormalizer.php @@ -21,19 +21,16 @@ class ServiceEndpointVirtualIPsItemNormalizer implements DenormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ServiceEndpointVirtualIPsItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ServiceEndpointVirtualIPsItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ServiceEndpointVirtualIPsItem' => false]; + } } diff --git a/src/Normalizer/ServiceJobStatusNormalizer.php b/src/Normalizer/ServiceJobStatusNormalizer.php index 61bc17b7..95d69b69 100644 --- a/src/Normalizer/ServiceJobStatusNormalizer.php +++ b/src/Normalizer/ServiceJobStatusNormalizer.php @@ -21,19 +21,16 @@ class ServiceJobStatusNormalizer implements DenormalizerInterface, NormalizerInt use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ServiceJobStatus' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ServiceJobStatus' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -74,7 +71,7 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('jobIteration') && null !== $object->getJobIteration()) { - $data['JobIteration'] = new \ArrayObject($this->normalizer->normalize($object->getJobIteration(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['JobIteration'] = $this->normalizer->normalize($object->getJobIteration(), 'json', $context); } if ($object->isInitialized('lastExecution') && null !== $object->getLastExecution()) { $data['LastExecution'] = $object->getLastExecution(); @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ServiceJobStatus' => false]; + } } diff --git a/src/Normalizer/ServiceNormalizer.php b/src/Normalizer/ServiceNormalizer.php index bcdfa424..14e7b074 100644 --- a/src/Normalizer/ServiceNormalizer.php +++ b/src/Normalizer/ServiceNormalizer.php @@ -21,19 +21,16 @@ class ServiceNormalizer implements DenormalizerInterface, NormalizerInterface, D use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Service' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Service' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -119,7 +116,7 @@ public function normalize($object, $format = null, array $context = []) $data['ID'] = $object->getID(); } if ($object->isInitialized('version') && null !== $object->getVersion()) { - $data['Version'] = new \ArrayObject($this->normalizer->normalize($object->getVersion(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Version'] = $this->normalizer->normalize($object->getVersion(), 'json', $context); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { $data['CreatedAt'] = $object->getCreatedAt(); @@ -128,19 +125,19 @@ public function normalize($object, $format = null, array $context = []) $data['UpdatedAt'] = $object->getUpdatedAt(); } if ($object->isInitialized('spec') && null !== $object->getSpec()) { - $data['Spec'] = new \ArrayObject($this->normalizer->normalize($object->getSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Spec'] = $this->normalizer->normalize($object->getSpec(), 'json', $context); } if ($object->isInitialized('endpoint') && null !== $object->getEndpoint()) { - $data['Endpoint'] = new \ArrayObject($this->normalizer->normalize($object->getEndpoint(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Endpoint'] = $this->normalizer->normalize($object->getEndpoint(), 'json', $context); } if ($object->isInitialized('updateStatus') && null !== $object->getUpdateStatus()) { - $data['UpdateStatus'] = new \ArrayObject($this->normalizer->normalize($object->getUpdateStatus(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['UpdateStatus'] = $this->normalizer->normalize($object->getUpdateStatus(), 'json', $context); } if ($object->isInitialized('serviceStatus') && null !== $object->getServiceStatus()) { - $data['ServiceStatus'] = new \ArrayObject($this->normalizer->normalize($object->getServiceStatus(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['ServiceStatus'] = $this->normalizer->normalize($object->getServiceStatus(), 'json', $context); } if ($object->isInitialized('jobStatus') && null !== $object->getJobStatus()) { - $data['JobStatus'] = new \ArrayObject($this->normalizer->normalize($object->getJobStatus(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['JobStatus'] = $this->normalizer->normalize($object->getJobStatus(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -150,4 +147,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Service' => false]; + } } diff --git a/src/Normalizer/ServiceServiceStatusNormalizer.php b/src/Normalizer/ServiceServiceStatusNormalizer.php index e1eefb60..53bab7f4 100644 --- a/src/Normalizer/ServiceServiceStatusNormalizer.php +++ b/src/Normalizer/ServiceServiceStatusNormalizer.php @@ -21,19 +21,16 @@ class ServiceServiceStatusNormalizer implements DenormalizerInterface, Normalize use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ServiceServiceStatus' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ServiceServiceStatus' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -96,4 +93,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ServiceServiceStatus' => false]; + } } diff --git a/src/Normalizer/ServiceSpecModeGlobalJobNormalizer.php b/src/Normalizer/ServiceSpecModeGlobalJobNormalizer.php index 715dc415..11a43a4e 100644 --- a/src/Normalizer/ServiceSpecModeGlobalJobNormalizer.php +++ b/src/Normalizer/ServiceSpecModeGlobalJobNormalizer.php @@ -21,19 +21,16 @@ class ServiceSpecModeGlobalJobNormalizer implements DenormalizerInterface, Norma use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ServiceSpecModeGlobalJob' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ServiceSpecModeGlobalJob' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -69,4 +66,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ServiceSpecModeGlobalJob' => false]; + } } diff --git a/src/Normalizer/ServiceSpecModeGlobalNormalizer.php b/src/Normalizer/ServiceSpecModeGlobalNormalizer.php index 5e186c82..eebceee1 100644 --- a/src/Normalizer/ServiceSpecModeGlobalNormalizer.php +++ b/src/Normalizer/ServiceSpecModeGlobalNormalizer.php @@ -21,19 +21,16 @@ class ServiceSpecModeGlobalNormalizer implements DenormalizerInterface, Normaliz use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ServiceSpecModeGlobal' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ServiceSpecModeGlobal' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -69,4 +66,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ServiceSpecModeGlobal' => false]; + } } diff --git a/src/Normalizer/ServiceSpecModeNormalizer.php b/src/Normalizer/ServiceSpecModeNormalizer.php index 9b56d01d..161dfbf3 100644 --- a/src/Normalizer/ServiceSpecModeNormalizer.php +++ b/src/Normalizer/ServiceSpecModeNormalizer.php @@ -21,19 +21,16 @@ class ServiceSpecModeNormalizer implements DenormalizerInterface, NormalizerInte use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ServiceSpecMode' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ServiceSpecMode' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -86,16 +83,16 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('replicated') && null !== $object->getReplicated()) { - $data['Replicated'] = new \ArrayObject($this->normalizer->normalize($object->getReplicated(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Replicated'] = $this->normalizer->normalize($object->getReplicated(), 'json', $context); } if ($object->isInitialized('global') && null !== $object->getGlobal()) { - $data['Global'] = new \ArrayObject($this->normalizer->normalize($object->getGlobal(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Global'] = $this->normalizer->normalize($object->getGlobal(), 'json', $context); } if ($object->isInitialized('replicatedJob') && null !== $object->getReplicatedJob()) { - $data['ReplicatedJob'] = new \ArrayObject($this->normalizer->normalize($object->getReplicatedJob(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['ReplicatedJob'] = $this->normalizer->normalize($object->getReplicatedJob(), 'json', $context); } if ($object->isInitialized('globalJob') && null !== $object->getGlobalJob()) { - $data['GlobalJob'] = new \ArrayObject($this->normalizer->normalize($object->getGlobalJob(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['GlobalJob'] = $this->normalizer->normalize($object->getGlobalJob(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -105,4 +102,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ServiceSpecMode' => false]; + } } diff --git a/src/Normalizer/ServiceSpecModeReplicatedJobNormalizer.php b/src/Normalizer/ServiceSpecModeReplicatedJobNormalizer.php index 515a0305..ca03edb8 100644 --- a/src/Normalizer/ServiceSpecModeReplicatedJobNormalizer.php +++ b/src/Normalizer/ServiceSpecModeReplicatedJobNormalizer.php @@ -21,19 +21,16 @@ class ServiceSpecModeReplicatedJobNormalizer implements DenormalizerInterface, N use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ServiceSpecModeReplicatedJob' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ServiceSpecModeReplicatedJob' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ServiceSpecModeReplicatedJob' => false]; + } } diff --git a/src/Normalizer/ServiceSpecModeReplicatedNormalizer.php b/src/Normalizer/ServiceSpecModeReplicatedNormalizer.php index 11d12821..ac2d6cc6 100644 --- a/src/Normalizer/ServiceSpecModeReplicatedNormalizer.php +++ b/src/Normalizer/ServiceSpecModeReplicatedNormalizer.php @@ -21,19 +21,16 @@ class ServiceSpecModeReplicatedNormalizer implements DenormalizerInterface, Norm use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ServiceSpecModeReplicated' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ServiceSpecModeReplicated' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -78,4 +75,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ServiceSpecModeReplicated' => false]; + } } diff --git a/src/Normalizer/ServiceSpecNormalizer.php b/src/Normalizer/ServiceSpecNormalizer.php index 6a893127..9878c88d 100644 --- a/src/Normalizer/ServiceSpecNormalizer.php +++ b/src/Normalizer/ServiceSpecNormalizer.php @@ -21,19 +21,16 @@ class ServiceSpecNormalizer implements DenormalizerInterface, NormalizerInterfac use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ServiceSpec' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ServiceSpec' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -121,33 +118,33 @@ public function normalize($object, $format = null, array $context = []) $data['Name'] = $object->getName(); } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getLabels() as $key => $value) { $values[$key] = $value; } $data['Labels'] = $values; } if ($object->isInitialized('taskTemplate') && null !== $object->getTaskTemplate()) { - $data['TaskTemplate'] = new \ArrayObject($this->normalizer->normalize($object->getTaskTemplate(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['TaskTemplate'] = $this->normalizer->normalize($object->getTaskTemplate(), 'json', $context); } if ($object->isInitialized('mode') && null !== $object->getMode()) { - $data['Mode'] = new \ArrayObject($this->normalizer->normalize($object->getMode(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Mode'] = $this->normalizer->normalize($object->getMode(), 'json', $context); } if ($object->isInitialized('updateConfig') && null !== $object->getUpdateConfig()) { - $data['UpdateConfig'] = new \ArrayObject($this->normalizer->normalize($object->getUpdateConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['UpdateConfig'] = $this->normalizer->normalize($object->getUpdateConfig(), 'json', $context); } if ($object->isInitialized('rollbackConfig') && null !== $object->getRollbackConfig()) { - $data['RollbackConfig'] = new \ArrayObject($this->normalizer->normalize($object->getRollbackConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['RollbackConfig'] = $this->normalizer->normalize($object->getRollbackConfig(), 'json', $context); } if ($object->isInitialized('networks') && null !== $object->getNetworks()) { $values_1 = []; foreach ($object->getNetworks() as $value_1) { - $values_1[] = new \ArrayObject($this->normalizer->normalize($value_1, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); } $data['Networks'] = $values_1; } if ($object->isInitialized('endpointSpec') && null !== $object->getEndpointSpec()) { - $data['EndpointSpec'] = new \ArrayObject($this->normalizer->normalize($object->getEndpointSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['EndpointSpec'] = $this->normalizer->normalize($object->getEndpointSpec(), 'json', $context); } foreach ($object as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { @@ -157,4 +154,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ServiceSpec' => false]; + } } diff --git a/src/Normalizer/ServiceSpecRollbackConfigNormalizer.php b/src/Normalizer/ServiceSpecRollbackConfigNormalizer.php index 1fd94013..911f9a46 100644 --- a/src/Normalizer/ServiceSpecRollbackConfigNormalizer.php +++ b/src/Normalizer/ServiceSpecRollbackConfigNormalizer.php @@ -21,19 +21,16 @@ class ServiceSpecRollbackConfigNormalizer implements DenormalizerInterface, Norm use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ServiceSpecRollbackConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ServiceSpecRollbackConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -126,4 +123,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ServiceSpecRollbackConfig' => false]; + } } diff --git a/src/Normalizer/ServiceSpecUpdateConfigNormalizer.php b/src/Normalizer/ServiceSpecUpdateConfigNormalizer.php index b4c5c0b3..f052f395 100644 --- a/src/Normalizer/ServiceSpecUpdateConfigNormalizer.php +++ b/src/Normalizer/ServiceSpecUpdateConfigNormalizer.php @@ -21,19 +21,16 @@ class ServiceSpecUpdateConfigNormalizer implements DenormalizerInterface, Normal use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ServiceSpecUpdateConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ServiceSpecUpdateConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -126,4 +123,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ServiceSpecUpdateConfig' => false]; + } } diff --git a/src/Normalizer/ServiceUpdateResponseNormalizer.php b/src/Normalizer/ServiceUpdateResponseNormalizer.php index e57abc11..9defbcab 100644 --- a/src/Normalizer/ServiceUpdateResponseNormalizer.php +++ b/src/Normalizer/ServiceUpdateResponseNormalizer.php @@ -21,19 +21,16 @@ class ServiceUpdateResponseNormalizer implements DenormalizerInterface, Normaliz use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ServiceUpdateResponse' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ServiceUpdateResponse' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -86,4 +83,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ServiceUpdateResponse' => false]; + } } diff --git a/src/Normalizer/ServiceUpdateStatusNormalizer.php b/src/Normalizer/ServiceUpdateStatusNormalizer.php index 64e6e6f9..a83e3f9e 100644 --- a/src/Normalizer/ServiceUpdateStatusNormalizer.php +++ b/src/Normalizer/ServiceUpdateStatusNormalizer.php @@ -21,19 +21,16 @@ class ServiceUpdateStatusNormalizer implements DenormalizerInterface, Normalizer use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ServiceUpdateStatus' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ServiceUpdateStatus' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -105,4 +102,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ServiceUpdateStatus' => false]; + } } diff --git a/src/Normalizer/ServicesCreatePostBodyNormalizer.php b/src/Normalizer/ServicesCreatePostBodyNormalizer.php index b1cc69ab..634e904c 100644 --- a/src/Normalizer/ServicesCreatePostBodyNormalizer.php +++ b/src/Normalizer/ServicesCreatePostBodyNormalizer.php @@ -21,19 +21,16 @@ class ServicesCreatePostBodyNormalizer implements DenormalizerInterface, Normali use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ServicesCreatePostBody' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ServicesCreatePostBody' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -121,33 +118,33 @@ public function normalize($object, $format = null, array $context = []) $data['Name'] = $object->getName(); } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getLabels() as $key => $value) { $values[$key] = $value; } $data['Labels'] = $values; } if ($object->isInitialized('taskTemplate') && null !== $object->getTaskTemplate()) { - $data['TaskTemplate'] = new \ArrayObject($this->normalizer->normalize($object->getTaskTemplate(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['TaskTemplate'] = $this->normalizer->normalize($object->getTaskTemplate(), 'json', $context); } if ($object->isInitialized('mode') && null !== $object->getMode()) { - $data['Mode'] = new \ArrayObject($this->normalizer->normalize($object->getMode(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Mode'] = $this->normalizer->normalize($object->getMode(), 'json', $context); } if ($object->isInitialized('updateConfig') && null !== $object->getUpdateConfig()) { - $data['UpdateConfig'] = new \ArrayObject($this->normalizer->normalize($object->getUpdateConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['UpdateConfig'] = $this->normalizer->normalize($object->getUpdateConfig(), 'json', $context); } if ($object->isInitialized('rollbackConfig') && null !== $object->getRollbackConfig()) { - $data['RollbackConfig'] = new \ArrayObject($this->normalizer->normalize($object->getRollbackConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['RollbackConfig'] = $this->normalizer->normalize($object->getRollbackConfig(), 'json', $context); } if ($object->isInitialized('networks') && null !== $object->getNetworks()) { $values_1 = []; foreach ($object->getNetworks() as $value_1) { - $values_1[] = new \ArrayObject($this->normalizer->normalize($value_1, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); } $data['Networks'] = $values_1; } if ($object->isInitialized('endpointSpec') && null !== $object->getEndpointSpec()) { - $data['EndpointSpec'] = new \ArrayObject($this->normalizer->normalize($object->getEndpointSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['EndpointSpec'] = $this->normalizer->normalize($object->getEndpointSpec(), 'json', $context); } foreach ($object as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { @@ -157,4 +154,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ServicesCreatePostBody' => false]; + } } diff --git a/src/Normalizer/ServicesCreatePostResponse201Normalizer.php b/src/Normalizer/ServicesCreatePostResponse201Normalizer.php index cf71c191..30b661ef 100644 --- a/src/Normalizer/ServicesCreatePostResponse201Normalizer.php +++ b/src/Normalizer/ServicesCreatePostResponse201Normalizer.php @@ -21,19 +21,16 @@ class ServicesCreatePostResponse201Normalizer implements DenormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ServicesCreatePostResponse201' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ServicesCreatePostResponse201' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ServicesCreatePostResponse201' => false]; + } } diff --git a/src/Normalizer/ServicesIdUpdatePostBodyNormalizer.php b/src/Normalizer/ServicesIdUpdatePostBodyNormalizer.php index efd0be17..9f807375 100644 --- a/src/Normalizer/ServicesIdUpdatePostBodyNormalizer.php +++ b/src/Normalizer/ServicesIdUpdatePostBodyNormalizer.php @@ -21,19 +21,16 @@ class ServicesIdUpdatePostBodyNormalizer implements DenormalizerInterface, Norma use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ServicesIdUpdatePostBody' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ServicesIdUpdatePostBody' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -121,33 +118,33 @@ public function normalize($object, $format = null, array $context = []) $data['Name'] = $object->getName(); } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getLabels() as $key => $value) { $values[$key] = $value; } $data['Labels'] = $values; } if ($object->isInitialized('taskTemplate') && null !== $object->getTaskTemplate()) { - $data['TaskTemplate'] = new \ArrayObject($this->normalizer->normalize($object->getTaskTemplate(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['TaskTemplate'] = $this->normalizer->normalize($object->getTaskTemplate(), 'json', $context); } if ($object->isInitialized('mode') && null !== $object->getMode()) { - $data['Mode'] = new \ArrayObject($this->normalizer->normalize($object->getMode(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Mode'] = $this->normalizer->normalize($object->getMode(), 'json', $context); } if ($object->isInitialized('updateConfig') && null !== $object->getUpdateConfig()) { - $data['UpdateConfig'] = new \ArrayObject($this->normalizer->normalize($object->getUpdateConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['UpdateConfig'] = $this->normalizer->normalize($object->getUpdateConfig(), 'json', $context); } if ($object->isInitialized('rollbackConfig') && null !== $object->getRollbackConfig()) { - $data['RollbackConfig'] = new \ArrayObject($this->normalizer->normalize($object->getRollbackConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['RollbackConfig'] = $this->normalizer->normalize($object->getRollbackConfig(), 'json', $context); } if ($object->isInitialized('networks') && null !== $object->getNetworks()) { $values_1 = []; foreach ($object->getNetworks() as $value_1) { - $values_1[] = new \ArrayObject($this->normalizer->normalize($value_1, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); } $data['Networks'] = $values_1; } if ($object->isInitialized('endpointSpec') && null !== $object->getEndpointSpec()) { - $data['EndpointSpec'] = new \ArrayObject($this->normalizer->normalize($object->getEndpointSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['EndpointSpec'] = $this->normalizer->normalize($object->getEndpointSpec(), 'json', $context); } foreach ($object as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { @@ -157,4 +154,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ServicesIdUpdatePostBody' => false]; + } } diff --git a/src/Normalizer/SwarmInfoNormalizer.php b/src/Normalizer/SwarmInfoNormalizer.php index db9f6697..df9af35f 100644 --- a/src/Normalizer/SwarmInfoNormalizer.php +++ b/src/Normalizer/SwarmInfoNormalizer.php @@ -21,19 +21,16 @@ class SwarmInfoNormalizer implements DenormalizerInterface, NormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SwarmInfo' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SwarmInfo' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -137,7 +134,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('remoteManagers') && null !== $object->getRemoteManagers()) { $values = []; foreach ($object->getRemoteManagers() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['RemoteManagers'] = $values; } @@ -148,7 +145,7 @@ public function normalize($object, $format = null, array $context = []) $data['Managers'] = $object->getManagers(); } if ($object->isInitialized('cluster') && null !== $object->getCluster()) { - $data['Cluster'] = new \ArrayObject($this->normalizer->normalize($object->getCluster(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Cluster'] = $this->normalizer->normalize($object->getCluster(), 'json', $context); } foreach ($object as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { @@ -158,4 +155,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SwarmInfo' => false]; + } } diff --git a/src/Normalizer/SwarmInitPostBodyNormalizer.php b/src/Normalizer/SwarmInitPostBodyNormalizer.php index 5764b840..fb14dd99 100644 --- a/src/Normalizer/SwarmInitPostBodyNormalizer.php +++ b/src/Normalizer/SwarmInitPostBodyNormalizer.php @@ -21,19 +21,16 @@ class SwarmInitPostBodyNormalizer implements DenormalizerInterface, NormalizerIn use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SwarmInitPostBody' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SwarmInitPostBody' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -139,7 +136,7 @@ public function normalize($object, $format = null, array $context = []) $data['SubnetSize'] = $object->getSubnetSize(); } if ($object->isInitialized('spec') && null !== $object->getSpec()) { - $data['Spec'] = new \ArrayObject($this->normalizer->normalize($object->getSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Spec'] = $this->normalizer->normalize($object->getSpec(), 'json', $context); } foreach ($object as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { @@ -149,4 +146,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SwarmInitPostBody' => false]; + } } diff --git a/src/Normalizer/SwarmJoinPostBodyNormalizer.php b/src/Normalizer/SwarmJoinPostBodyNormalizer.php index 5bee4cc2..56675f07 100644 --- a/src/Normalizer/SwarmJoinPostBodyNormalizer.php +++ b/src/Normalizer/SwarmJoinPostBodyNormalizer.php @@ -21,19 +21,16 @@ class SwarmJoinPostBodyNormalizer implements DenormalizerInterface, NormalizerIn use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SwarmJoinPostBody' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SwarmJoinPostBody' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -122,4 +119,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SwarmJoinPostBody' => false]; + } } diff --git a/src/Normalizer/SwarmNormalizer.php b/src/Normalizer/SwarmNormalizer.php index 11699357..d286533e 100644 --- a/src/Normalizer/SwarmNormalizer.php +++ b/src/Normalizer/SwarmNormalizer.php @@ -21,19 +21,16 @@ class SwarmNormalizer implements DenormalizerInterface, NormalizerInterface, Den use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Swarm' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Swarm' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -135,7 +132,7 @@ public function normalize($object, $format = null, array $context = []) $data['ID'] = $object->getID(); } if ($object->isInitialized('version') && null !== $object->getVersion()) { - $data['Version'] = new \ArrayObject($this->normalizer->normalize($object->getVersion(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Version'] = $this->normalizer->normalize($object->getVersion(), 'json', $context); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { $data['CreatedAt'] = $object->getCreatedAt(); @@ -144,10 +141,10 @@ public function normalize($object, $format = null, array $context = []) $data['UpdatedAt'] = $object->getUpdatedAt(); } if ($object->isInitialized('spec') && null !== $object->getSpec()) { - $data['Spec'] = new \ArrayObject($this->normalizer->normalize($object->getSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Spec'] = $this->normalizer->normalize($object->getSpec(), 'json', $context); } if ($object->isInitialized('tLSInfo') && null !== $object->getTLSInfo()) { - $data['TLSInfo'] = new \ArrayObject($this->normalizer->normalize($object->getTLSInfo(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['TLSInfo'] = $this->normalizer->normalize($object->getTLSInfo(), 'json', $context); } if ($object->isInitialized('rootRotationInProgress') && null !== $object->getRootRotationInProgress()) { $data['RootRotationInProgress'] = $object->getRootRotationInProgress(); @@ -166,7 +163,7 @@ public function normalize($object, $format = null, array $context = []) $data['SubnetSize'] = $object->getSubnetSize(); } if ($object->isInitialized('joinTokens') && null !== $object->getJoinTokens()) { - $data['JoinTokens'] = new \ArrayObject($this->normalizer->normalize($object->getJoinTokens(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['JoinTokens'] = $this->normalizer->normalize($object->getJoinTokens(), 'json', $context); } foreach ($object as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { @@ -176,4 +173,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Swarm' => false]; + } } diff --git a/src/Normalizer/SwarmSpecCAConfigExternalCAsItemNormalizer.php b/src/Normalizer/SwarmSpecCAConfigExternalCAsItemNormalizer.php index 435f4dea..171daf4d 100644 --- a/src/Normalizer/SwarmSpecCAConfigExternalCAsItemNormalizer.php +++ b/src/Normalizer/SwarmSpecCAConfigExternalCAsItemNormalizer.php @@ -21,19 +21,16 @@ class SwarmSpecCAConfigExternalCAsItemNormalizer implements DenormalizerInterfac use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SwarmSpecCAConfigExternalCAsItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SwarmSpecCAConfigExternalCAsItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -96,7 +93,7 @@ public function normalize($object, $format = null, array $context = []) $data['URL'] = $object->getURL(); } if ($object->isInitialized('options') && null !== $object->getOptions()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getOptions() as $key => $value) { $values[$key] = $value; } @@ -113,4 +110,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SwarmSpecCAConfigExternalCAsItem' => false]; + } } diff --git a/src/Normalizer/SwarmSpecCAConfigNormalizer.php b/src/Normalizer/SwarmSpecCAConfigNormalizer.php index 9e9ae698..1917f4e2 100644 --- a/src/Normalizer/SwarmSpecCAConfigNormalizer.php +++ b/src/Normalizer/SwarmSpecCAConfigNormalizer.php @@ -21,19 +21,16 @@ class SwarmSpecCAConfigNormalizer implements DenormalizerInterface, NormalizerIn use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SwarmSpecCAConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SwarmSpecCAConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -101,7 +98,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('externalCAs') && null !== $object->getExternalCAs()) { $values = []; foreach ($object->getExternalCAs() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['ExternalCAs'] = $values; } @@ -122,4 +119,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SwarmSpecCAConfig' => false]; + } } diff --git a/src/Normalizer/SwarmSpecDispatcherNormalizer.php b/src/Normalizer/SwarmSpecDispatcherNormalizer.php index c3340d90..d1e495f7 100644 --- a/src/Normalizer/SwarmSpecDispatcherNormalizer.php +++ b/src/Normalizer/SwarmSpecDispatcherNormalizer.php @@ -21,19 +21,16 @@ class SwarmSpecDispatcherNormalizer implements DenormalizerInterface, Normalizer use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SwarmSpecDispatcher' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SwarmSpecDispatcher' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -78,4 +75,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SwarmSpecDispatcher' => false]; + } } diff --git a/src/Normalizer/SwarmSpecEncryptionConfigNormalizer.php b/src/Normalizer/SwarmSpecEncryptionConfigNormalizer.php index 3e2b5812..f10276c3 100644 --- a/src/Normalizer/SwarmSpecEncryptionConfigNormalizer.php +++ b/src/Normalizer/SwarmSpecEncryptionConfigNormalizer.php @@ -21,19 +21,16 @@ class SwarmSpecEncryptionConfigNormalizer implements DenormalizerInterface, Norm use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SwarmSpecEncryptionConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SwarmSpecEncryptionConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -78,4 +75,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SwarmSpecEncryptionConfig' => false]; + } } diff --git a/src/Normalizer/SwarmSpecNormalizer.php b/src/Normalizer/SwarmSpecNormalizer.php index ccf5d430..56f8e2f2 100644 --- a/src/Normalizer/SwarmSpecNormalizer.php +++ b/src/Normalizer/SwarmSpecNormalizer.php @@ -21,19 +21,16 @@ class SwarmSpecNormalizer implements DenormalizerInterface, NormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SwarmSpec' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SwarmSpec' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -117,29 +114,29 @@ public function normalize($object, $format = null, array $context = []) $data['Name'] = $object->getName(); } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getLabels() as $key => $value) { $values[$key] = $value; } $data['Labels'] = $values; } if ($object->isInitialized('orchestration') && null !== $object->getOrchestration()) { - $data['Orchestration'] = new \ArrayObject($this->normalizer->normalize($object->getOrchestration(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Orchestration'] = $this->normalizer->normalize($object->getOrchestration(), 'json', $context); } if ($object->isInitialized('raft') && null !== $object->getRaft()) { - $data['Raft'] = new \ArrayObject($this->normalizer->normalize($object->getRaft(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Raft'] = $this->normalizer->normalize($object->getRaft(), 'json', $context); } if ($object->isInitialized('dispatcher') && null !== $object->getDispatcher()) { - $data['Dispatcher'] = new \ArrayObject($this->normalizer->normalize($object->getDispatcher(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Dispatcher'] = $this->normalizer->normalize($object->getDispatcher(), 'json', $context); } if ($object->isInitialized('cAConfig') && null !== $object->getCAConfig()) { - $data['CAConfig'] = new \ArrayObject($this->normalizer->normalize($object->getCAConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['CAConfig'] = $this->normalizer->normalize($object->getCAConfig(), 'json', $context); } if ($object->isInitialized('encryptionConfig') && null !== $object->getEncryptionConfig()) { - $data['EncryptionConfig'] = new \ArrayObject($this->normalizer->normalize($object->getEncryptionConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['EncryptionConfig'] = $this->normalizer->normalize($object->getEncryptionConfig(), 'json', $context); } if ($object->isInitialized('taskDefaults') && null !== $object->getTaskDefaults()) { - $data['TaskDefaults'] = new \ArrayObject($this->normalizer->normalize($object->getTaskDefaults(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['TaskDefaults'] = $this->normalizer->normalize($object->getTaskDefaults(), 'json', $context); } foreach ($object as $key_1 => $value_1) { if (preg_match('/.*/', (string) $key_1)) { @@ -149,4 +146,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SwarmSpec' => false]; + } } diff --git a/src/Normalizer/SwarmSpecOrchestrationNormalizer.php b/src/Normalizer/SwarmSpecOrchestrationNormalizer.php index 2c1ce750..60dfc1c4 100644 --- a/src/Normalizer/SwarmSpecOrchestrationNormalizer.php +++ b/src/Normalizer/SwarmSpecOrchestrationNormalizer.php @@ -21,19 +21,16 @@ class SwarmSpecOrchestrationNormalizer implements DenormalizerInterface, Normali use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SwarmSpecOrchestration' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SwarmSpecOrchestration' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -78,4 +75,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SwarmSpecOrchestration' => false]; + } } diff --git a/src/Normalizer/SwarmSpecRaftNormalizer.php b/src/Normalizer/SwarmSpecRaftNormalizer.php index c713d23e..473ba600 100644 --- a/src/Normalizer/SwarmSpecRaftNormalizer.php +++ b/src/Normalizer/SwarmSpecRaftNormalizer.php @@ -21,19 +21,16 @@ class SwarmSpecRaftNormalizer implements DenormalizerInterface, NormalizerInterf use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SwarmSpecRaft' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SwarmSpecRaft' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -114,4 +111,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SwarmSpecRaft' => false]; + } } diff --git a/src/Normalizer/SwarmSpecTaskDefaultsLogDriverNormalizer.php b/src/Normalizer/SwarmSpecTaskDefaultsLogDriverNormalizer.php index e2a6050a..769238e7 100644 --- a/src/Normalizer/SwarmSpecTaskDefaultsLogDriverNormalizer.php +++ b/src/Normalizer/SwarmSpecTaskDefaultsLogDriverNormalizer.php @@ -21,19 +21,16 @@ class SwarmSpecTaskDefaultsLogDriverNormalizer implements DenormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SwarmSpecTaskDefaultsLogDriver' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SwarmSpecTaskDefaultsLogDriver' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -81,7 +78,7 @@ public function normalize($object, $format = null, array $context = []) $data['Name'] = $object->getName(); } if ($object->isInitialized('options') && null !== $object->getOptions()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getOptions() as $key => $value) { $values[$key] = $value; } @@ -95,4 +92,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SwarmSpecTaskDefaultsLogDriver' => false]; + } } diff --git a/src/Normalizer/SwarmSpecTaskDefaultsNormalizer.php b/src/Normalizer/SwarmSpecTaskDefaultsNormalizer.php index 768be69a..1317ce5c 100644 --- a/src/Normalizer/SwarmSpecTaskDefaultsNormalizer.php +++ b/src/Normalizer/SwarmSpecTaskDefaultsNormalizer.php @@ -21,19 +21,16 @@ class SwarmSpecTaskDefaultsNormalizer implements DenormalizerInterface, Normaliz use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SwarmSpecTaskDefaults' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SwarmSpecTaskDefaults' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -68,7 +65,7 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('logDriver') && null !== $object->getLogDriver()) { - $data['LogDriver'] = new \ArrayObject($this->normalizer->normalize($object->getLogDriver(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['LogDriver'] = $this->normalizer->normalize($object->getLogDriver(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -78,4 +75,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SwarmSpecTaskDefaults' => false]; + } } diff --git a/src/Normalizer/SwarmUnlockPostBodyNormalizer.php b/src/Normalizer/SwarmUnlockPostBodyNormalizer.php index e055e81d..e1846266 100644 --- a/src/Normalizer/SwarmUnlockPostBodyNormalizer.php +++ b/src/Normalizer/SwarmUnlockPostBodyNormalizer.php @@ -21,19 +21,16 @@ class SwarmUnlockPostBodyNormalizer implements DenormalizerInterface, Normalizer use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SwarmUnlockPostBody' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SwarmUnlockPostBody' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -78,4 +75,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SwarmUnlockPostBody' => false]; + } } diff --git a/src/Normalizer/SwarmUnlockkeyGetJsonResponse200Normalizer.php b/src/Normalizer/SwarmUnlockkeyGetJsonResponse200Normalizer.php index a857828f..0d76c40b 100644 --- a/src/Normalizer/SwarmUnlockkeyGetJsonResponse200Normalizer.php +++ b/src/Normalizer/SwarmUnlockkeyGetJsonResponse200Normalizer.php @@ -21,19 +21,16 @@ class SwarmUnlockkeyGetJsonResponse200Normalizer implements DenormalizerInterfac use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SwarmUnlockkeyGetJsonResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SwarmUnlockkeyGetJsonResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -78,4 +75,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SwarmUnlockkeyGetJsonResponse200' => false]; + } } diff --git a/src/Normalizer/SwarmUnlockkeyGetTextplainResponse200Normalizer.php b/src/Normalizer/SwarmUnlockkeyGetTextplainResponse200Normalizer.php index 14923221..f1b23e75 100644 --- a/src/Normalizer/SwarmUnlockkeyGetTextplainResponse200Normalizer.php +++ b/src/Normalizer/SwarmUnlockkeyGetTextplainResponse200Normalizer.php @@ -21,19 +21,16 @@ class SwarmUnlockkeyGetTextplainResponse200Normalizer implements DenormalizerInt use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SwarmUnlockkeyGetTextplainResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SwarmUnlockkeyGetTextplainResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -78,4 +75,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SwarmUnlockkeyGetTextplainResponse200' => false]; + } } diff --git a/src/Normalizer/SystemDfGetJsonResponse200Normalizer.php b/src/Normalizer/SystemDfGetJsonResponse200Normalizer.php index 000e5d69..3aadf625 100644 --- a/src/Normalizer/SystemDfGetJsonResponse200Normalizer.php +++ b/src/Normalizer/SystemDfGetJsonResponse200Normalizer.php @@ -21,19 +21,16 @@ class SystemDfGetJsonResponse200Normalizer implements DenormalizerInterface, Nor use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SystemDfGetJsonResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SystemDfGetJsonResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -117,7 +114,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('images') && null !== $object->getImages()) { $values = []; foreach ($object->getImages() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['Images'] = $values; } @@ -126,7 +123,7 @@ public function normalize($object, $format = null, array $context = []) foreach ($object->getContainers() as $value_1) { $values_2 = []; foreach ($value_1 as $value_2) { - $values_2[] = new \ArrayObject($this->normalizer->normalize($value_2, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); } $values_1[] = $values_2; } @@ -135,14 +132,14 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('volumes') && null !== $object->getVolumes()) { $values_3 = []; foreach ($object->getVolumes() as $value_3) { - $values_3[] = new \ArrayObject($this->normalizer->normalize($value_3, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); } $data['Volumes'] = $values_3; } if ($object->isInitialized('buildCache') && null !== $object->getBuildCache()) { $values_4 = []; foreach ($object->getBuildCache() as $value_4) { - $values_4[] = new \ArrayObject($this->normalizer->normalize($value_4, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_4[] = $this->normalizer->normalize($value_4, 'json', $context); } $data['BuildCache'] = $values_4; } @@ -154,4 +151,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SystemDfGetJsonResponse200' => false]; + } } diff --git a/src/Normalizer/SystemDfGetTextplainResponse200Normalizer.php b/src/Normalizer/SystemDfGetTextplainResponse200Normalizer.php index 88b5e711..fb37d638 100644 --- a/src/Normalizer/SystemDfGetTextplainResponse200Normalizer.php +++ b/src/Normalizer/SystemDfGetTextplainResponse200Normalizer.php @@ -21,19 +21,16 @@ class SystemDfGetTextplainResponse200Normalizer implements DenormalizerInterface use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SystemDfGetTextplainResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SystemDfGetTextplainResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -117,7 +114,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('images') && null !== $object->getImages()) { $values = []; foreach ($object->getImages() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['Images'] = $values; } @@ -126,7 +123,7 @@ public function normalize($object, $format = null, array $context = []) foreach ($object->getContainers() as $value_1) { $values_2 = []; foreach ($value_1 as $value_2) { - $values_2[] = new \ArrayObject($this->normalizer->normalize($value_2, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); } $values_1[] = $values_2; } @@ -135,14 +132,14 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('volumes') && null !== $object->getVolumes()) { $values_3 = []; foreach ($object->getVolumes() as $value_3) { - $values_3[] = new \ArrayObject($this->normalizer->normalize($value_3, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); } $data['Volumes'] = $values_3; } if ($object->isInitialized('buildCache') && null !== $object->getBuildCache()) { $values_4 = []; foreach ($object->getBuildCache() as $value_4) { - $values_4[] = new \ArrayObject($this->normalizer->normalize($value_4, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_4[] = $this->normalizer->normalize($value_4, 'json', $context); } $data['BuildCache'] = $values_4; } @@ -154,4 +151,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SystemDfGetTextplainResponse200' => false]; + } } diff --git a/src/Normalizer/SystemInfoDefaultAddressPoolsItemNormalizer.php b/src/Normalizer/SystemInfoDefaultAddressPoolsItemNormalizer.php index 2fb7432d..f56fdc2b 100644 --- a/src/Normalizer/SystemInfoDefaultAddressPoolsItemNormalizer.php +++ b/src/Normalizer/SystemInfoDefaultAddressPoolsItemNormalizer.php @@ -21,19 +21,16 @@ class SystemInfoDefaultAddressPoolsItemNormalizer implements DenormalizerInterfa use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SystemInfoDefaultAddressPoolsItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SystemInfoDefaultAddressPoolsItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SystemInfoDefaultAddressPoolsItem' => false]; + } } diff --git a/src/Normalizer/SystemInfoNormalizer.php b/src/Normalizer/SystemInfoNormalizer.php index 3b784108..95b4f1ce 100644 --- a/src/Normalizer/SystemInfoNormalizer.php +++ b/src/Normalizer/SystemInfoNormalizer.php @@ -21,19 +21,16 @@ class SystemInfoNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SystemInfo' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SystemInfo' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -501,7 +498,7 @@ public function normalize($object, $format = null, array $context = []) $data['DockerRootDir'] = $object->getDockerRootDir(); } if ($object->isInitialized('plugins') && null !== $object->getPlugins()) { - $data['Plugins'] = new \ArrayObject($this->normalizer->normalize($object->getPlugins(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Plugins'] = $this->normalizer->normalize($object->getPlugins(), 'json', $context); } if ($object->isInitialized('memoryLimit') && null !== $object->getMemoryLimit()) { $data['MemoryLimit'] = $object->getMemoryLimit(); @@ -588,12 +585,12 @@ public function normalize($object, $format = null, array $context = []) $data['IndexServerAddress'] = $object->getIndexServerAddress(); } if ($object->isInitialized('registryConfig') && null !== $object->getRegistryConfig()) { - $data['RegistryConfig'] = new \ArrayObject($this->normalizer->normalize($object->getRegistryConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['RegistryConfig'] = $this->normalizer->normalize($object->getRegistryConfig(), 'json', $context); } if ($object->isInitialized('genericResources') && null !== $object->getGenericResources()) { $values_2 = []; foreach ($object->getGenericResources() as $value_2) { - $values_2[] = new \ArrayObject($this->normalizer->normalize($value_2, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); } $data['GenericResources'] = $values_2; } @@ -629,9 +626,9 @@ public function normalize($object, $format = null, array $context = []) $data['ClusterAdvertise'] = $object->getClusterAdvertise(); } if ($object->isInitialized('runtimes') && null !== $object->getRuntimes()) { - $values_4 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_4 = []; foreach ($object->getRuntimes() as $key => $value_4) { - $values_4[$key] = new \ArrayObject($this->normalizer->normalize($value_4, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_4[$key] = $this->normalizer->normalize($value_4, 'json', $context); } $data['Runtimes'] = $values_4; } @@ -639,7 +636,7 @@ public function normalize($object, $format = null, array $context = []) $data['DefaultRuntime'] = $object->getDefaultRuntime(); } if ($object->isInitialized('swarm') && null !== $object->getSwarm()) { - $data['Swarm'] = new \ArrayObject($this->normalizer->normalize($object->getSwarm(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Swarm'] = $this->normalizer->normalize($object->getSwarm(), 'json', $context); } if ($object->isInitialized('liveRestoreEnabled') && null !== $object->getLiveRestoreEnabled()) { $data['LiveRestoreEnabled'] = $object->getLiveRestoreEnabled(); @@ -651,13 +648,13 @@ public function normalize($object, $format = null, array $context = []) $data['InitBinary'] = $object->getInitBinary(); } if ($object->isInitialized('containerdCommit') && null !== $object->getContainerdCommit()) { - $data['ContainerdCommit'] = new \ArrayObject($this->normalizer->normalize($object->getContainerdCommit(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['ContainerdCommit'] = $this->normalizer->normalize($object->getContainerdCommit(), 'json', $context); } if ($object->isInitialized('runcCommit') && null !== $object->getRuncCommit()) { - $data['RuncCommit'] = new \ArrayObject($this->normalizer->normalize($object->getRuncCommit(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['RuncCommit'] = $this->normalizer->normalize($object->getRuncCommit(), 'json', $context); } if ($object->isInitialized('initCommit') && null !== $object->getInitCommit()) { - $data['InitCommit'] = new \ArrayObject($this->normalizer->normalize($object->getInitCommit(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['InitCommit'] = $this->normalizer->normalize($object->getInitCommit(), 'json', $context); } if ($object->isInitialized('securityOptions') && null !== $object->getSecurityOptions()) { $values_5 = []; @@ -672,7 +669,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('defaultAddressPools') && null !== $object->getDefaultAddressPools()) { $values_6 = []; foreach ($object->getDefaultAddressPools() as $value_6) { - $values_6[] = new \ArrayObject($this->normalizer->normalize($value_6, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_6[] = $this->normalizer->normalize($value_6, 'json', $context); } $data['DefaultAddressPools'] = $values_6; } @@ -691,4 +688,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SystemInfo' => false]; + } } diff --git a/src/Normalizer/SystemVersionComponentsItemDetailsNormalizer.php b/src/Normalizer/SystemVersionComponentsItemDetailsNormalizer.php index 8fd42581..f60fa07e 100644 --- a/src/Normalizer/SystemVersionComponentsItemDetailsNormalizer.php +++ b/src/Normalizer/SystemVersionComponentsItemDetailsNormalizer.php @@ -21,19 +21,16 @@ class SystemVersionComponentsItemDetailsNormalizer implements DenormalizerInterf use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SystemVersionComponentsItemDetails' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SystemVersionComponentsItemDetails' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -69,4 +66,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SystemVersionComponentsItemDetails' => false]; + } } diff --git a/src/Normalizer/SystemVersionComponentsItemNormalizer.php b/src/Normalizer/SystemVersionComponentsItemNormalizer.php index 05ab5b97..c8bd887d 100644 --- a/src/Normalizer/SystemVersionComponentsItemNormalizer.php +++ b/src/Normalizer/SystemVersionComponentsItemNormalizer.php @@ -21,19 +21,16 @@ class SystemVersionComponentsItemNormalizer implements DenormalizerInterface, No use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SystemVersionComponentsItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SystemVersionComponentsItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -82,7 +79,7 @@ public function normalize($object, $format = null, array $context = []) $data['Name'] = $object->getName(); $data['Version'] = $object->getVersion(); if ($object->isInitialized('details') && null !== $object->getDetails()) { - $data['Details'] = new \ArrayObject($this->normalizer->normalize($object->getDetails(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Details'] = $this->normalizer->normalize($object->getDetails(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -92,4 +89,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SystemVersionComponentsItem' => false]; + } } diff --git a/src/Normalizer/SystemVersionNormalizer.php b/src/Normalizer/SystemVersionNormalizer.php index 8a87d791..ba9c01f0 100644 --- a/src/Normalizer/SystemVersionNormalizer.php +++ b/src/Normalizer/SystemVersionNormalizer.php @@ -21,19 +21,16 @@ class SystemVersionNormalizer implements DenormalizerInterface, NormalizerInterf use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SystemVersion' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SystemVersion' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -138,12 +135,12 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('platform') && null !== $object->getPlatform()) { - $data['Platform'] = new \ArrayObject($this->normalizer->normalize($object->getPlatform(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Platform'] = $this->normalizer->normalize($object->getPlatform(), 'json', $context); } if ($object->isInitialized('components') && null !== $object->getComponents()) { $values = []; foreach ($object->getComponents() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['Components'] = $values; } @@ -185,4 +182,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SystemVersion' => false]; + } } diff --git a/src/Normalizer/SystemVersionPlatformNormalizer.php b/src/Normalizer/SystemVersionPlatformNormalizer.php index a2582a0c..175ec324 100644 --- a/src/Normalizer/SystemVersionPlatformNormalizer.php +++ b/src/Normalizer/SystemVersionPlatformNormalizer.php @@ -21,19 +21,16 @@ class SystemVersionPlatformNormalizer implements DenormalizerInterface, Normaliz use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\SystemVersionPlatform' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\SystemVersionPlatform' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -76,4 +73,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\SystemVersionPlatform' => false]; + } } diff --git a/src/Normalizer/TLSInfoNormalizer.php b/src/Normalizer/TLSInfoNormalizer.php index b28cce21..4387df89 100644 --- a/src/Normalizer/TLSInfoNormalizer.php +++ b/src/Normalizer/TLSInfoNormalizer.php @@ -21,19 +21,16 @@ class TLSInfoNormalizer implements DenormalizerInterface, NormalizerInterface, D use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TLSInfo' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TLSInfo' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -96,4 +93,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TLSInfo' => false]; + } } diff --git a/src/Normalizer/TaskNormalizer.php b/src/Normalizer/TaskNormalizer.php index 43eb46e5..f74adc32 100644 --- a/src/Normalizer/TaskNormalizer.php +++ b/src/Normalizer/TaskNormalizer.php @@ -21,19 +21,16 @@ class TaskNormalizer implements DenormalizerInterface, NormalizerInterface, Deno use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Task' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Task' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -157,7 +154,7 @@ public function normalize($object, $format = null, array $context = []) $data['ID'] = $object->getID(); } if ($object->isInitialized('version') && null !== $object->getVersion()) { - $data['Version'] = new \ArrayObject($this->normalizer->normalize($object->getVersion(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Version'] = $this->normalizer->normalize($object->getVersion(), 'json', $context); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { $data['CreatedAt'] = $object->getCreatedAt(); @@ -169,14 +166,14 @@ public function normalize($object, $format = null, array $context = []) $data['Name'] = $object->getName(); } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getLabels() as $key => $value) { $values[$key] = $value; } $data['Labels'] = $values; } if ($object->isInitialized('spec') && null !== $object->getSpec()) { - $data['Spec'] = new \ArrayObject($this->normalizer->normalize($object->getSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Spec'] = $this->normalizer->normalize($object->getSpec(), 'json', $context); } if ($object->isInitialized('serviceID') && null !== $object->getServiceID()) { $data['ServiceID'] = $object->getServiceID(); @@ -190,18 +187,18 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('assignedGenericResources') && null !== $object->getAssignedGenericResources()) { $values_1 = []; foreach ($object->getAssignedGenericResources() as $value_1) { - $values_1[] = new \ArrayObject($this->normalizer->normalize($value_1, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); } $data['AssignedGenericResources'] = $values_1; } if ($object->isInitialized('status') && null !== $object->getStatus()) { - $data['Status'] = new \ArrayObject($this->normalizer->normalize($object->getStatus(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Status'] = $this->normalizer->normalize($object->getStatus(), 'json', $context); } if ($object->isInitialized('desiredState') && null !== $object->getDesiredState()) { $data['DesiredState'] = $object->getDesiredState(); } if ($object->isInitialized('jobIteration') && null !== $object->getJobIteration()) { - $data['JobIteration'] = new \ArrayObject($this->normalizer->normalize($object->getJobIteration(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['JobIteration'] = $this->normalizer->normalize($object->getJobIteration(), 'json', $context); } foreach ($object as $key_1 => $value_2) { if (preg_match('/.*/', (string) $key_1)) { @@ -211,4 +208,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Task' => false]; + } } diff --git a/src/Normalizer/TaskSpecContainerSpecConfigsItemFileNormalizer.php b/src/Normalizer/TaskSpecContainerSpecConfigsItemFileNormalizer.php index 5cea8e61..4af597dc 100644 --- a/src/Normalizer/TaskSpecContainerSpecConfigsItemFileNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecConfigsItemFileNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecContainerSpecConfigsItemFileNormalizer implements DenormalizerInte use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemFile' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemFile' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -105,4 +102,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemFile' => false]; + } } diff --git a/src/Normalizer/TaskSpecContainerSpecConfigsItemNormalizer.php b/src/Normalizer/TaskSpecContainerSpecConfigsItemNormalizer.php index e4132925..f6810a17 100644 --- a/src/Normalizer/TaskSpecContainerSpecConfigsItemNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecConfigsItemNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecContainerSpecConfigsItemNormalizer implements DenormalizerInterfac use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -86,10 +83,10 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('file') && null !== $object->getFile()) { - $data['File'] = new \ArrayObject($this->normalizer->normalize($object->getFile(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['File'] = $this->normalizer->normalize($object->getFile(), 'json', $context); } if ($object->isInitialized('runtime') && null !== $object->getRuntime()) { - $data['Runtime'] = new \ArrayObject($this->normalizer->normalize($object->getRuntime(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Runtime'] = $this->normalizer->normalize($object->getRuntime(), 'json', $context); } if ($object->isInitialized('configID') && null !== $object->getConfigID()) { $data['ConfigID'] = $object->getConfigID(); @@ -105,4 +102,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecContainerSpecConfigsItem' => false]; + } } diff --git a/src/Normalizer/TaskSpecContainerSpecConfigsItemRuntimeNormalizer.php b/src/Normalizer/TaskSpecContainerSpecConfigsItemRuntimeNormalizer.php index 8d45a7e5..9954e574 100644 --- a/src/Normalizer/TaskSpecContainerSpecConfigsItemRuntimeNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecConfigsItemRuntimeNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecContainerSpecConfigsItemRuntimeNormalizer implements DenormalizerI use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemRuntime' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemRuntime' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -69,4 +66,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecContainerSpecConfigsItemRuntime' => false]; + } } diff --git a/src/Normalizer/TaskSpecContainerSpecDNSConfigNormalizer.php b/src/Normalizer/TaskSpecContainerSpecDNSConfigNormalizer.php index d151b5e5..6a39178c 100644 --- a/src/Normalizer/TaskSpecContainerSpecDNSConfigNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecDNSConfigNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecContainerSpecDNSConfigNormalizer implements DenormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecContainerSpecDNSConfig' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecContainerSpecDNSConfig' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -120,4 +117,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecContainerSpecDNSConfig' => false]; + } } diff --git a/src/Normalizer/TaskSpecContainerSpecNormalizer.php b/src/Normalizer/TaskSpecContainerSpecNormalizer.php index 178f7958..ce1cb156 100644 --- a/src/Normalizer/TaskSpecContainerSpecNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecContainerSpecNormalizer implements DenormalizerInterface, Normaliz use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecContainerSpec' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecContainerSpec' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -279,7 +276,7 @@ public function normalize($object, $format = null, array $context = []) $data['Image'] = $object->getImage(); } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getLabels() as $key => $value) { $values[$key] = $value; } @@ -323,7 +320,7 @@ public function normalize($object, $format = null, array $context = []) $data['Groups'] = $values_4; } if ($object->isInitialized('privileges') && null !== $object->getPrivileges()) { - $data['Privileges'] = new \ArrayObject($this->normalizer->normalize($object->getPrivileges(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Privileges'] = $this->normalizer->normalize($object->getPrivileges(), 'json', $context); } if ($object->isInitialized('tTY') && null !== $object->getTTY()) { $data['TTY'] = $object->getTTY(); @@ -337,7 +334,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('mounts') && null !== $object->getMounts()) { $values_5 = []; foreach ($object->getMounts() as $value_5) { - $values_5[] = new \ArrayObject($this->normalizer->normalize($value_5, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_5[] = $this->normalizer->normalize($value_5, 'json', $context); } $data['Mounts'] = $values_5; } @@ -348,7 +345,7 @@ public function normalize($object, $format = null, array $context = []) $data['StopGracePeriod'] = $object->getStopGracePeriod(); } if ($object->isInitialized('healthCheck') && null !== $object->getHealthCheck()) { - $data['HealthCheck'] = new \ArrayObject($this->normalizer->normalize($object->getHealthCheck(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['HealthCheck'] = $this->normalizer->normalize($object->getHealthCheck(), 'json', $context); } if ($object->isInitialized('hosts') && null !== $object->getHosts()) { $values_6 = []; @@ -358,19 +355,19 @@ public function normalize($object, $format = null, array $context = []) $data['Hosts'] = $values_6; } if ($object->isInitialized('dNSConfig') && null !== $object->getDNSConfig()) { - $data['DNSConfig'] = new \ArrayObject($this->normalizer->normalize($object->getDNSConfig(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['DNSConfig'] = $this->normalizer->normalize($object->getDNSConfig(), 'json', $context); } if ($object->isInitialized('secrets') && null !== $object->getSecrets()) { $values_7 = []; foreach ($object->getSecrets() as $value_7) { - $values_7[] = new \ArrayObject($this->normalizer->normalize($value_7, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_7[] = $this->normalizer->normalize($value_7, 'json', $context); } $data['Secrets'] = $values_7; } if ($object->isInitialized('configs') && null !== $object->getConfigs()) { $values_8 = []; foreach ($object->getConfigs() as $value_8) { - $values_8[] = new \ArrayObject($this->normalizer->normalize($value_8, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_8[] = $this->normalizer->normalize($value_8, 'json', $context); } $data['Configs'] = $values_8; } @@ -381,7 +378,7 @@ public function normalize($object, $format = null, array $context = []) $data['Init'] = $object->getInit(); } if ($object->isInitialized('sysctls') && null !== $object->getSysctls()) { - $values_9 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_9 = []; foreach ($object->getSysctls() as $key_1 => $value_9) { $values_9[$key_1] = $value_9; } @@ -404,7 +401,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('ulimits') && null !== $object->getUlimits()) { $values_12 = []; foreach ($object->getUlimits() as $value_12) { - $values_12[] = new \ArrayObject($this->normalizer->normalize($value_12, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_12[] = $this->normalizer->normalize($value_12, 'json', $context); } $data['Ulimits'] = $values_12; } @@ -416,4 +413,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecContainerSpec' => false]; + } } diff --git a/src/Normalizer/TaskSpecContainerSpecPrivilegesCredentialSpecNormalizer.php b/src/Normalizer/TaskSpecContainerSpecPrivilegesCredentialSpecNormalizer.php index e1bafb34..8bcc9c2f 100644 --- a/src/Normalizer/TaskSpecContainerSpecPrivilegesCredentialSpecNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecPrivilegesCredentialSpecNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecContainerSpecPrivilegesCredentialSpecNormalizer implements Denorma use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesCredentialSpec' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesCredentialSpec' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -96,4 +93,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesCredentialSpec' => false]; + } } diff --git a/src/Normalizer/TaskSpecContainerSpecPrivilegesNormalizer.php b/src/Normalizer/TaskSpecContainerSpecPrivilegesNormalizer.php index 6a20f7e9..fc218d97 100644 --- a/src/Normalizer/TaskSpecContainerSpecPrivilegesNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecPrivilegesNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecContainerSpecPrivilegesNormalizer implements DenormalizerInterface use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecContainerSpecPrivileges' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecContainerSpecPrivileges' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -74,10 +71,10 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('credentialSpec') && null !== $object->getCredentialSpec()) { - $data['CredentialSpec'] = new \ArrayObject($this->normalizer->normalize($object->getCredentialSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['CredentialSpec'] = $this->normalizer->normalize($object->getCredentialSpec(), 'json', $context); } if ($object->isInitialized('sELinuxContext') && null !== $object->getSELinuxContext()) { - $data['SELinuxContext'] = new \ArrayObject($this->normalizer->normalize($object->getSELinuxContext(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['SELinuxContext'] = $this->normalizer->normalize($object->getSELinuxContext(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecContainerSpecPrivileges' => false]; + } } diff --git a/src/Normalizer/TaskSpecContainerSpecPrivilegesSELinuxContextNormalizer.php b/src/Normalizer/TaskSpecContainerSpecPrivilegesSELinuxContextNormalizer.php index 17016c6b..15bf5874 100644 --- a/src/Normalizer/TaskSpecContainerSpecPrivilegesSELinuxContextNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecPrivilegesSELinuxContextNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecContainerSpecPrivilegesSELinuxContextNormalizer implements Denorma use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesSELinuxContext' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesSELinuxContext' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -114,4 +111,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecContainerSpecPrivilegesSELinuxContext' => false]; + } } diff --git a/src/Normalizer/TaskSpecContainerSpecSecretsItemFileNormalizer.php b/src/Normalizer/TaskSpecContainerSpecSecretsItemFileNormalizer.php index 14472456..8e5c5c8e 100644 --- a/src/Normalizer/TaskSpecContainerSpecSecretsItemFileNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecSecretsItemFileNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecContainerSpecSecretsItemFileNormalizer implements DenormalizerInte use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItemFile' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItemFile' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -105,4 +102,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecContainerSpecSecretsItemFile' => false]; + } } diff --git a/src/Normalizer/TaskSpecContainerSpecSecretsItemNormalizer.php b/src/Normalizer/TaskSpecContainerSpecSecretsItemNormalizer.php index f310cec6..3c6bc076 100644 --- a/src/Normalizer/TaskSpecContainerSpecSecretsItemNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecSecretsItemNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecContainerSpecSecretsItemNormalizer implements DenormalizerInterfac use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecContainerSpecSecretsItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -80,7 +77,7 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('file') && null !== $object->getFile()) { - $data['File'] = new \ArrayObject($this->normalizer->normalize($object->getFile(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['File'] = $this->normalizer->normalize($object->getFile(), 'json', $context); } if ($object->isInitialized('secretID') && null !== $object->getSecretID()) { $data['SecretID'] = $object->getSecretID(); @@ -96,4 +93,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecContainerSpecSecretsItem' => false]; + } } diff --git a/src/Normalizer/TaskSpecContainerSpecUlimitsItemNormalizer.php b/src/Normalizer/TaskSpecContainerSpecUlimitsItemNormalizer.php index f11a9d49..4cc99fa5 100644 --- a/src/Normalizer/TaskSpecContainerSpecUlimitsItemNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecUlimitsItemNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecContainerSpecUlimitsItemNormalizer implements DenormalizerInterfac use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecContainerSpecUlimitsItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecContainerSpecUlimitsItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -96,4 +93,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecContainerSpecUlimitsItem' => false]; + } } diff --git a/src/Normalizer/TaskSpecLogDriverNormalizer.php b/src/Normalizer/TaskSpecLogDriverNormalizer.php index ff694be0..1b242910 100644 --- a/src/Normalizer/TaskSpecLogDriverNormalizer.php +++ b/src/Normalizer/TaskSpecLogDriverNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecLogDriverNormalizer implements DenormalizerInterface, NormalizerIn use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecLogDriver' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecLogDriver' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -81,7 +78,7 @@ public function normalize($object, $format = null, array $context = []) $data['Name'] = $object->getName(); } if ($object->isInitialized('options') && null !== $object->getOptions()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getOptions() as $key => $value) { $values[$key] = $value; } @@ -95,4 +92,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecLogDriver' => false]; + } } diff --git a/src/Normalizer/TaskSpecNetworkAttachmentSpecNormalizer.php b/src/Normalizer/TaskSpecNetworkAttachmentSpecNormalizer.php index 8bbc0135..c03cde6c 100644 --- a/src/Normalizer/TaskSpecNetworkAttachmentSpecNormalizer.php +++ b/src/Normalizer/TaskSpecNetworkAttachmentSpecNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecNetworkAttachmentSpecNormalizer implements DenormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecNetworkAttachmentSpec' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecNetworkAttachmentSpec' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -78,4 +75,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecNetworkAttachmentSpec' => false]; + } } diff --git a/src/Normalizer/TaskSpecNormalizer.php b/src/Normalizer/TaskSpecNormalizer.php index 5712d685..0b6bfb91 100644 --- a/src/Normalizer/TaskSpecNormalizer.php +++ b/src/Normalizer/TaskSpecNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecNormalizer implements DenormalizerInterface, NormalizerInterface, use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpec' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpec' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -126,22 +123,22 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('pluginSpec') && null !== $object->getPluginSpec()) { - $data['PluginSpec'] = new \ArrayObject($this->normalizer->normalize($object->getPluginSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['PluginSpec'] = $this->normalizer->normalize($object->getPluginSpec(), 'json', $context); } if ($object->isInitialized('containerSpec') && null !== $object->getContainerSpec()) { - $data['ContainerSpec'] = new \ArrayObject($this->normalizer->normalize($object->getContainerSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['ContainerSpec'] = $this->normalizer->normalize($object->getContainerSpec(), 'json', $context); } if ($object->isInitialized('networkAttachmentSpec') && null !== $object->getNetworkAttachmentSpec()) { - $data['NetworkAttachmentSpec'] = new \ArrayObject($this->normalizer->normalize($object->getNetworkAttachmentSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['NetworkAttachmentSpec'] = $this->normalizer->normalize($object->getNetworkAttachmentSpec(), 'json', $context); } if ($object->isInitialized('resources') && null !== $object->getResources()) { - $data['Resources'] = new \ArrayObject($this->normalizer->normalize($object->getResources(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Resources'] = $this->normalizer->normalize($object->getResources(), 'json', $context); } if ($object->isInitialized('restartPolicy') && null !== $object->getRestartPolicy()) { - $data['RestartPolicy'] = new \ArrayObject($this->normalizer->normalize($object->getRestartPolicy(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['RestartPolicy'] = $this->normalizer->normalize($object->getRestartPolicy(), 'json', $context); } if ($object->isInitialized('placement') && null !== $object->getPlacement()) { - $data['Placement'] = new \ArrayObject($this->normalizer->normalize($object->getPlacement(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Placement'] = $this->normalizer->normalize($object->getPlacement(), 'json', $context); } if ($object->isInitialized('forceUpdate') && null !== $object->getForceUpdate()) { $data['ForceUpdate'] = $object->getForceUpdate(); @@ -152,12 +149,12 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('networks') && null !== $object->getNetworks()) { $values = []; foreach ($object->getNetworks() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['Networks'] = $values; } if ($object->isInitialized('logDriver') && null !== $object->getLogDriver()) { - $data['LogDriver'] = new \ArrayObject($this->normalizer->normalize($object->getLogDriver(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['LogDriver'] = $this->normalizer->normalize($object->getLogDriver(), 'json', $context); } foreach ($object as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { @@ -167,4 +164,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpec' => false]; + } } diff --git a/src/Normalizer/TaskSpecPlacementNormalizer.php b/src/Normalizer/TaskSpecPlacementNormalizer.php index b7330934..30c0d293 100644 --- a/src/Normalizer/TaskSpecPlacementNormalizer.php +++ b/src/Normalizer/TaskSpecPlacementNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecPlacementNormalizer implements DenormalizerInterface, NormalizerIn use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecPlacement' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecPlacement' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -107,7 +104,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('preferences') && null !== $object->getPreferences()) { $values_1 = []; foreach ($object->getPreferences() as $value_1) { - $values_1[] = new \ArrayObject($this->normalizer->normalize($value_1, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); } $data['Preferences'] = $values_1; } @@ -117,7 +114,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('platforms') && null !== $object->getPlatforms()) { $values_2 = []; foreach ($object->getPlatforms() as $value_2) { - $values_2[] = new \ArrayObject($this->normalizer->normalize($value_2, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); } $data['Platforms'] = $values_2; } @@ -129,4 +126,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecPlacement' => false]; + } } diff --git a/src/Normalizer/TaskSpecPlacementPreferencesItemNormalizer.php b/src/Normalizer/TaskSpecPlacementPreferencesItemNormalizer.php index d2a2aeef..54cd5661 100644 --- a/src/Normalizer/TaskSpecPlacementPreferencesItemNormalizer.php +++ b/src/Normalizer/TaskSpecPlacementPreferencesItemNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecPlacementPreferencesItemNormalizer implements DenormalizerInterfac use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -68,7 +65,7 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('spread') && null !== $object->getSpread()) { - $data['Spread'] = new \ArrayObject($this->normalizer->normalize($object->getSpread(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Spread'] = $this->normalizer->normalize($object->getSpread(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -78,4 +75,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecPlacementPreferencesItem' => false]; + } } diff --git a/src/Normalizer/TaskSpecPlacementPreferencesItemSpreadNormalizer.php b/src/Normalizer/TaskSpecPlacementPreferencesItemSpreadNormalizer.php index 8fd7c263..a7684c60 100644 --- a/src/Normalizer/TaskSpecPlacementPreferencesItemSpreadNormalizer.php +++ b/src/Normalizer/TaskSpecPlacementPreferencesItemSpreadNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecPlacementPreferencesItemSpreadNormalizer implements DenormalizerIn use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItemSpread' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecPlacementPreferencesItemSpread' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -78,4 +75,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecPlacementPreferencesItemSpread' => false]; + } } diff --git a/src/Normalizer/TaskSpecPluginSpecNormalizer.php b/src/Normalizer/TaskSpecPluginSpecNormalizer.php index a27be4dc..ce838a87 100644 --- a/src/Normalizer/TaskSpecPluginSpecNormalizer.php +++ b/src/Normalizer/TaskSpecPluginSpecNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecPluginSpecNormalizer implements DenormalizerInterface, NormalizerI use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecPluginSpec' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecPluginSpec' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -101,7 +98,7 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('pluginPrivilege') && null !== $object->getPluginPrivilege()) { $values = []; foreach ($object->getPluginPrivilege() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['PluginPrivilege'] = $values; } @@ -113,4 +110,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecPluginSpec' => false]; + } } diff --git a/src/Normalizer/TaskSpecPluginSpecPluginPrivilegeItemNormalizer.php b/src/Normalizer/TaskSpecPluginSpecPluginPrivilegeItemNormalizer.php index cd6a8d0d..8085d94c 100644 --- a/src/Normalizer/TaskSpecPluginSpecPluginPrivilegeItemNormalizer.php +++ b/src/Normalizer/TaskSpecPluginSpecPluginPrivilegeItemNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecPluginSpecPluginPrivilegeItemNormalizer implements DenormalizerInt use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecPluginSpecPluginPrivilegeItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecPluginSpecPluginPrivilegeItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -104,4 +101,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecPluginSpecPluginPrivilegeItem' => false]; + } } diff --git a/src/Normalizer/TaskSpecResourcesNormalizer.php b/src/Normalizer/TaskSpecResourcesNormalizer.php index 101e21a3..b6d7b35b 100644 --- a/src/Normalizer/TaskSpecResourcesNormalizer.php +++ b/src/Normalizer/TaskSpecResourcesNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecResourcesNormalizer implements DenormalizerInterface, NormalizerIn use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecResources' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecResources' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -74,10 +71,10 @@ public function normalize($object, $format = null, array $context = []) { $data = []; if ($object->isInitialized('limits') && null !== $object->getLimits()) { - $data['Limits'] = new \ArrayObject($this->normalizer->normalize($object->getLimits(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Limits'] = $this->normalizer->normalize($object->getLimits(), 'json', $context); } if ($object->isInitialized('reservation') && null !== $object->getReservation()) { - $data['Reservation'] = new \ArrayObject($this->normalizer->normalize($object->getReservation(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['Reservation'] = $this->normalizer->normalize($object->getReservation(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecResources' => false]; + } } diff --git a/src/Normalizer/TaskSpecRestartPolicyNormalizer.php b/src/Normalizer/TaskSpecRestartPolicyNormalizer.php index e2d7d45e..6f165f88 100644 --- a/src/Normalizer/TaskSpecRestartPolicyNormalizer.php +++ b/src/Normalizer/TaskSpecRestartPolicyNormalizer.php @@ -21,19 +21,16 @@ class TaskSpecRestartPolicyNormalizer implements DenormalizerInterface, Normaliz use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskSpecRestartPolicy' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskSpecRestartPolicy' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -105,4 +102,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskSpecRestartPolicy' => false]; + } } diff --git a/src/Normalizer/TaskStatusContainerStatusNormalizer.php b/src/Normalizer/TaskStatusContainerStatusNormalizer.php index eb7657f7..95a452fa 100644 --- a/src/Normalizer/TaskStatusContainerStatusNormalizer.php +++ b/src/Normalizer/TaskStatusContainerStatusNormalizer.php @@ -21,19 +21,16 @@ class TaskStatusContainerStatusNormalizer implements DenormalizerInterface, Norm use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskStatusContainerStatus' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskStatusContainerStatus' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -96,4 +93,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskStatusContainerStatus' => false]; + } } diff --git a/src/Normalizer/TaskStatusNormalizer.php b/src/Normalizer/TaskStatusNormalizer.php index dbb7932e..eaed1737 100644 --- a/src/Normalizer/TaskStatusNormalizer.php +++ b/src/Normalizer/TaskStatusNormalizer.php @@ -21,19 +21,16 @@ class TaskStatusNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\TaskStatus' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\TaskStatus' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -104,7 +101,7 @@ public function normalize($object, $format = null, array $context = []) $data['Err'] = $object->getErr(); } if ($object->isInitialized('containerStatus') && null !== $object->getContainerStatus()) { - $data['ContainerStatus'] = new \ArrayObject($this->normalizer->normalize($object->getContainerStatus(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['ContainerStatus'] = $this->normalizer->normalize($object->getContainerStatus(), 'json', $context); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -114,4 +111,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\TaskStatus' => false]; + } } diff --git a/src/Normalizer/ThrottleDeviceNormalizer.php b/src/Normalizer/ThrottleDeviceNormalizer.php index 79cb5657..811c3d91 100644 --- a/src/Normalizer/ThrottleDeviceNormalizer.php +++ b/src/Normalizer/ThrottleDeviceNormalizer.php @@ -21,19 +21,16 @@ class ThrottleDeviceNormalizer implements DenormalizerInterface, NormalizerInter use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\ThrottleDevice' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\ThrottleDevice' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -87,4 +84,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\ThrottleDevice' => false]; + } } diff --git a/src/Normalizer/VolumeNormalizer.php b/src/Normalizer/VolumeNormalizer.php index bec3fe77..9a2ba370 100644 --- a/src/Normalizer/VolumeNormalizer.php +++ b/src/Normalizer/VolumeNormalizer.php @@ -21,19 +21,16 @@ class VolumeNormalizer implements DenormalizerInterface, NormalizerInterface, De use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\Volume' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\Volume' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -134,25 +131,25 @@ public function normalize($object, $format = null, array $context = []) $data['CreatedAt'] = $object->getCreatedAt(); } if ($object->isInitialized('status') && null !== $object->getStatus()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getStatus() as $key => $value) { - $values[$key] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[$key] = $this->normalizer->normalize($value, 'json', $context); } $data['Status'] = $values; } - $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_1 = []; foreach ($object->getLabels() as $key_1 => $value_1) { $values_1[$key_1] = $value_1; } $data['Labels'] = $values_1; $data['Scope'] = $object->getScope(); - $values_2 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_2 = []; foreach ($object->getOptions() as $key_2 => $value_2) { $values_2[$key_2] = $value_2; } $data['Options'] = $values_2; if ($object->isInitialized('usageData') && null !== $object->getUsageData()) { - $data['UsageData'] = new \ArrayObject($this->normalizer->normalize($object->getUsageData(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $data['UsageData'] = $this->normalizer->normalize($object->getUsageData(), 'json', $context); } foreach ($object as $key_3 => $value_3) { if (preg_match('/.*/', (string) $key_3)) { @@ -162,4 +159,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\Volume' => false]; + } } diff --git a/src/Normalizer/VolumeStatusItemNormalizer.php b/src/Normalizer/VolumeStatusItemNormalizer.php index 8a7dd313..b404b71a 100644 --- a/src/Normalizer/VolumeStatusItemNormalizer.php +++ b/src/Normalizer/VolumeStatusItemNormalizer.php @@ -21,19 +21,16 @@ class VolumeStatusItemNormalizer implements DenormalizerInterface, NormalizerInt use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\VolumeStatusItem' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\VolumeStatusItem' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -69,4 +66,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\VolumeStatusItem' => false]; + } } diff --git a/src/Normalizer/VolumeUsageDataNormalizer.php b/src/Normalizer/VolumeUsageDataNormalizer.php index 1da4e01a..2da95cea 100644 --- a/src/Normalizer/VolumeUsageDataNormalizer.php +++ b/src/Normalizer/VolumeUsageDataNormalizer.php @@ -21,19 +21,16 @@ class VolumeUsageDataNormalizer implements DenormalizerInterface, NormalizerInte use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\VolumeUsageData' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\VolumeUsageData' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -83,4 +80,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\VolumeUsageData' => false]; + } } diff --git a/src/Normalizer/VolumesCreatePostBodyNormalizer.php b/src/Normalizer/VolumesCreatePostBodyNormalizer.php index be6d7180..518bb022 100644 --- a/src/Normalizer/VolumesCreatePostBodyNormalizer.php +++ b/src/Normalizer/VolumesCreatePostBodyNormalizer.php @@ -21,19 +21,16 @@ class VolumesCreatePostBodyNormalizer implements DenormalizerInterface, Normaliz use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\VolumesCreatePostBody' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\VolumesCreatePostBody' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -100,14 +97,14 @@ public function normalize($object, $format = null, array $context = []) $data['Driver'] = $object->getDriver(); } if ($object->isInitialized('driverOpts') && null !== $object->getDriverOpts()) { - $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values = []; foreach ($object->getDriverOpts() as $key => $value) { $values[$key] = $value; } $data['DriverOpts'] = $values; } if ($object->isInitialized('labels') && null !== $object->getLabels()) { - $values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + $values_1 = []; foreach ($object->getLabels() as $key_1 => $value_1) { $values_1[$key_1] = $value_1; } @@ -121,4 +118,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\VolumesCreatePostBody' => false]; + } } diff --git a/src/Normalizer/VolumesGetResponse200Normalizer.php b/src/Normalizer/VolumesGetResponse200Normalizer.php index 3e6d434a..f314205f 100644 --- a/src/Normalizer/VolumesGetResponse200Normalizer.php +++ b/src/Normalizer/VolumesGetResponse200Normalizer.php @@ -21,19 +21,16 @@ class VolumesGetResponse200Normalizer implements DenormalizerInterface, Normaliz use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\VolumesGetResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\VolumesGetResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -83,7 +80,7 @@ public function normalize($object, $format = null, array $context = []) $data = []; $values = []; foreach ($object->getVolumes() as $value) { - $values[] = new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS); + $values[] = $this->normalizer->normalize($value, 'json', $context); } $data['Volumes'] = $values; $values_1 = []; @@ -99,4 +96,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\VolumesGetResponse200' => false]; + } } diff --git a/src/Normalizer/VolumesPrunePostResponse200Normalizer.php b/src/Normalizer/VolumesPrunePostResponse200Normalizer.php index 9c4f36bc..1126905d 100644 --- a/src/Normalizer/VolumesPrunePostResponse200Normalizer.php +++ b/src/Normalizer/VolumesPrunePostResponse200Normalizer.php @@ -21,19 +21,16 @@ class VolumesPrunePostResponse200Normalizer implements DenormalizerInterface, No use NormalizerAwareTrait; use ValidatorTrait; - public function supportsDenormalization($data, $type, $format = null): bool + public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return 'Docker\\API\\Model\\VolumesPrunePostResponse200' === $type; } - public function supportsNormalization($data, $format = null): bool + public function supportsNormalization($data, $format = null, array $context = []): bool { return \is_object($data) && 'Docker\\API\\Model\\VolumesPrunePostResponse200' === $data::class; } - /** - * @return mixed - */ public function denormalize($data, $class, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -95,4 +92,9 @@ public function normalize($object, $format = null, array $context = []) return $data; } + + public function getSupportedTypes(string $format = null): array + { + return ['Docker\\API\\Model\\VolumesPrunePostResponse200' => false]; + } } diff --git a/src/Runtime/Client/BaseEndpoint.php b/src/Runtime/Client/BaseEndpoint.php index 68906878..dfdd6ec5 100644 --- a/src/Runtime/Client/BaseEndpoint.php +++ b/src/Runtime/Client/BaseEndpoint.php @@ -23,7 +23,7 @@ abstract public function getUri(): string; abstract public function getAuthenticationScopes(): array; - abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, string $contentType = null); protected function getExtraHeaders(): array { diff --git a/src/Runtime/Client/EndpointTrait.php b/src/Runtime/Client/EndpointTrait.php index 412105ed..f4063276 100644 --- a/src/Runtime/Client/EndpointTrait.php +++ b/src/Runtime/Client/EndpointTrait.php @@ -9,7 +9,7 @@ trait EndpointTrait { - abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null); + abstract protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, string $contentType = null); public function parseResponse(ResponseInterface $response, SerializerInterface $serializer, string $fetchMode = Client::FETCH_OBJECT) { diff --git a/src/Runtime/Normalizer/ReferenceNormalizer.php b/src/Runtime/Normalizer/ReferenceNormalizer.php index 695daa16..56c84439 100644 --- a/src/Runtime/Normalizer/ReferenceNormalizer.php +++ b/src/Runtime/Normalizer/ReferenceNormalizer.php @@ -9,9 +9,6 @@ class ReferenceNormalizer implements NormalizerInterface { - /** - * {@inheritdoc} - */ public function normalize($object, $format = null, array $context = []) { $ref = []; @@ -20,9 +17,6 @@ public function normalize($object, $format = null, array $context = []) return $ref; } - /** - * {@inheritdoc} - */ public function supportsNormalization($data, $format = null): bool { return $data instanceof Reference;