Skip to content

Commit

Permalink
Add support for nullability
Browse files Browse the repository at this point in the history
  • Loading branch information
zaporylie committed Jul 31, 2024
1 parent ac4c7ec commit 359d8c8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/Model/RecurringPayment/v3/Agreement.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
}

Expand All @@ -211,19 +211,19 @@ public function getStatus(): string
/**
* Gets sub value.
*
* @return string
* @return string|null
*/
public function getSub(): string
public function getSub(): ?string
{
return $this->sub;
}

/**
* Gets userInfoUrl value.
*
* @return string
* @return string|null
*/
public function getUserInfoUrl(): string
public function getUserInfoUrl(): ?string
{
return $this->userinfoUrl;
}
Expand Down

0 comments on commit 359d8c8

Please sign in to comment.