From 74a5da16fe44c321d9ae1237a99c303d81669788 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Mon, 3 Jul 2023 08:09:15 +0200 Subject: [PATCH] Generate the property type for generated objects (#1467) --- src/Result/GetAuthorizationTokenResponse.php | 2 ++ src/ValueObject/AuthorizationData.php | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/Result/GetAuthorizationTokenResponse.php b/src/Result/GetAuthorizationTokenResponse.php index 1c60e60..9d903e9 100644 --- a/src/Result/GetAuthorizationTokenResponse.php +++ b/src/Result/GetAuthorizationTokenResponse.php @@ -10,6 +10,8 @@ class GetAuthorizationTokenResponse extends Result { /** * A list of authorization token data objects that correspond to the `registryIds` values in the request. + * + * @var AuthorizationData[] */ private $authorizationData; diff --git a/src/ValueObject/AuthorizationData.php b/src/ValueObject/AuthorizationData.php index 7cf8879..c30db0b 100644 --- a/src/ValueObject/AuthorizationData.php +++ b/src/ValueObject/AuthorizationData.php @@ -10,12 +10,16 @@ final class AuthorizationData /** * A base64-encoded string that contains authorization data for the specified Amazon ECR registry. When the string is * decoded, it is presented in the format `user:password` for private registry authentication using `docker login`. + * + * @var string|null */ private $authorizationToken; /** * The Unix time in seconds and milliseconds when the authorization token expires. Authorization tokens are valid for 12 * hours. + * + * @var \DateTimeImmutable|null */ private $expiresAt; @@ -23,6 +27,8 @@ final class AuthorizationData * The registry URL to use for this authorization token in a `docker login` command. The Amazon ECR registry URL format * is `https://aws_account_id.dkr.ecr.region.amazonaws.com`. For example, * `https://012345678910.dkr.ecr.us-east-1.amazonaws.com`.. + * + * @var string|null */ private $proxyEndpoint;