@@ -43,7 +43,7 @@ class PaymentResult implements PaymentResultInterface
4343 /** @inheritDoc */
4444 public function getPaymentMethod (): ?string
4545 {
46- return $ this ->paymentMethod ;
46+ return $ this ->paymentMethod ?? null ;
4747 }
4848
4949 /** @inheritDoc */
@@ -56,7 +56,7 @@ public function setPaymentMethod(string $paymentMethod): self
5656 /** @inheritDoc */
5757 public function getPaymentDate (): ?string
5858 {
59- return $ this ->paymentDate ;
59+ return $ this ->paymentDate ?? null ;
6060 }
6161
6262 /** @inheritDoc */
@@ -69,7 +69,7 @@ public function setPaymentDate(string $paymentDate): self
6969 /** @inheritDoc */
7070 public function getCaptureDate (): ?string
7171 {
72- return $ this ->captureDate ;
72+ return $ this ->captureDate ?? null ;
7373 }
7474
7575 /** @inheritDoc */
@@ -82,7 +82,7 @@ public function setCaptureDate(string $captureDate): self
8282 /** @inheritDoc */
8383 public function getCardProgramName (): ?string
8484 {
85- return $ this ->cardProgramName ;
85+ return $ this ->cardProgramName ?? null ;
8686 }
8787
8888 /** @inheritDoc */
@@ -95,7 +95,7 @@ public function setCardProgramName(string $cardProgramName): self
9595 /** @inheritDoc */
9696 public function getAuthCode (): ?string
9797 {
98- return $ this ->authCode ;
98+ return $ this ->authCode ?? null ;
9999 }
100100
101101 /** @inheritDoc */
@@ -108,7 +108,7 @@ public function setAuthCode(string $authCode): self
108108 /** @inheritDoc */
109109 public function getMerchantId (): ?string
110110 {
111- return $ this ->merchantId ;
111+ return $ this ->merchantId ?? null ;
112112 }
113113
114114 /** @inheritDoc */
@@ -121,7 +121,7 @@ public function setMerchantId(string $merchantId): self
121121 /** @inheritDoc */
122122 public function getRrn (): ?int
123123 {
124- return $ this ->rrn ;
124+ return $ this ->rrn ?? null ;
125125 }
126126
127127 /** @inheritDoc */
@@ -134,7 +134,7 @@ public function setRrn(int $rrn): self
134134 /** @inheritDoc */
135135 public function getInstallmentsNumber (): ?string
136136 {
137- return $ this ->installmentsNumber ;
137+ return $ this ->installmentsNumber ?? null ;
138138 }
139139
140140 /** @inheritDoc */
@@ -154,13 +154,13 @@ public function setCardDetails(CardDetailsInterface $cardDetails): self
154154 /** @inheritDoc */
155155 public function getCardDetails () : CardDetailsInterface
156156 {
157- return $ this ->cardDetails ;
157+ return $ this ->cardDetails ?? new CardDetails () ;
158158 }
159159
160160 /** @inheritDoc */
161161 public function getPaymentBankShortName (): ?string
162162 {
163- return $ this ->paymentBankShortName ;
163+ return $ this ->paymentBankShortName ?? null ;
164164 }
165165
166166 /** @inheritDoc */
@@ -173,7 +173,7 @@ public function setPaymentBankShortName(string $paymentBankShortName): self
173173 /** @inheritDoc */
174174 public function getServiceProcessingType (): ?string
175175 {
176- return $ this ->serviceProcessingType ;
176+ return $ this ->serviceProcessingType ?? null ;
177177 }
178178
179179 /** @inheritDoc */
0 commit comments