From d61a0520fd992f3bcf7a01a3921cc556997fa258 Mon Sep 17 00:00:00 2001 From: Elnur Hajiyev Date: Mon, 6 Sep 2021 14:45:36 +0400 Subject: [PATCH] Make `$CustomerReference` nullable in `AuthenticateSPRequest` --- src/Gateway/Request/AuthenticateSPRequest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Gateway/Request/AuthenticateSPRequest.php b/src/Gateway/Request/AuthenticateSPRequest.php index ddea84b..be66ff3 100644 --- a/src/Gateway/Request/AuthenticateSPRequest.php +++ b/src/Gateway/Request/AuthenticateSPRequest.php @@ -14,9 +14,9 @@ class AuthenticateSPRequest { /** - * @var string + * @var ?string */ - private string $CustomerReference; + private ?string $CustomerReference; /** * @var stdClass @@ -111,19 +111,19 @@ private function addContactDetails(Identity $identity) } /** - * @return string + * @return ?string */ - public function getCustomerReference(): string + public function getCustomerReference(): ?string { return $this->CustomerReference; } /** - * @param string $CustomerReference + * @param ?string $CustomerReference * * @return AuthenticateSPRequest */ - public function setCustomerReference(string $CustomerReference): AuthenticateSPRequest + public function setCustomerReference(?string $CustomerReference): AuthenticateSPRequest { $this->CustomerReference = $CustomerReference;