From 359d8c830f519a82cc561a0b4f33381d57675a2b Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Wed, 31 Jul 2024 12:09:35 +0200 Subject: [PATCH] Add support for nullability --- src/Model/RecurringPayment/v3/Agreement.php | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Model/RecurringPayment/v3/Agreement.php b/src/Model/RecurringPayment/v3/Agreement.php index 7b9ca60..c82b9f5 100644 --- a/src/Model/RecurringPayment/v3/Agreement.php +++ b/src/Model/RecurringPayment/v3/Agreement.php @@ -55,13 +55,13 @@ class Agreement protected $created; /** - * @var \DateTimeInterface + * @var \DateTimeInterface|null * @Serializer\Type("DateTime<'Y-m-d\TH:i:s\Z'>") */ protected $start; /** - * @var \DateTimeInterface + * @var \DateTimeInterface|null * @Serializer\Type("DateTime<'Y-m-d\TH:i:s\Z'>") */ protected $stop; @@ -85,13 +85,13 @@ class Agreement protected $merchantRedirectUrl; /** - * @var string + * @var string|null * @Serializer\Type("string") */ protected $sub; /** - * @var string + * @var string|null * @Serializer\Type("string") */ protected $userinfoUrl; @@ -173,18 +173,18 @@ public function getProductDescription(): string /** * Gets start value. * - * @return \DateTimeInterface + * @return \DateTimeInterface|null */ - public function getStart(): \DateTimeInterface { + public function getStart(): ?\DateTimeInterface { return $this->start; } /** * Gets stop value. * - * @return \DateTimeInterface + * @return \DateTimeInterface|null */ - public function getStop(): \DateTimeInterface { + public function getStop(): ?\DateTimeInterface { return $this->stop; } @@ -211,9 +211,9 @@ public function getStatus(): string /** * Gets sub value. * - * @return string + * @return string|null */ - public function getSub(): string + public function getSub(): ?string { return $this->sub; } @@ -221,9 +221,9 @@ public function getSub(): string /** * Gets userInfoUrl value. * - * @return string + * @return string|null */ - public function getUserInfoUrl(): string + public function getUserInfoUrl(): ?string { return $this->userinfoUrl; }