@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $baseUrl = $parsedBaseUrl['scheme']. |
48 | 48 | '://'.rawurlencode($this->username).':'.rawurlencode($this->password).'@'.$parsedBaseUrl['host']; |
49 | 49 | |
50 | - $this->baseUrl = $baseUrl; |
|
50 | + $this->baseUrl = $baseUrl; |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | { |
198 | 198 | |
199 | 199 | $url = $this->baseUrl.$uri; |
200 | - $options = $options ? : []; |
|
200 | + $options = $options ?: []; |
|
201 | 201 | $defaultOptions = []; |
202 | 202 | $options = array_merge($defaultOptions, $options); |
203 | 203 | $client = $this->getClient(); |
@@ -41,13 +41,13 @@ discard block |
||
41 | 41 | protected $callbackVerifyOrder; |
42 | 42 | |
43 | 43 | public function __construct( |
44 | - ?string $callbackForm = null, |
|
45 | - ?string $callbackOk = null, |
|
46 | - ?string $callbackFail = null, |
|
47 | - ?string $callbackRedirect = null, |
|
48 | - ?string $callbackOpen = null, |
|
49 | - ?string $callbackNotification = null, |
|
50 | - ?string $callbackVerifyOrder = null |
|
44 | + ? string $callbackForm = null, |
|
45 | + ? string $callbackOk = null, |
|
46 | + ? string $callbackFail = null, |
|
47 | + ? string $callbackRedirect = null, |
|
48 | + ? string $callbackOpen = null, |
|
49 | + ? string $callbackNotification = null, |
|
50 | + ? string $callbackVerifyOrder = null |
|
51 | 51 | ) { |
52 | 52 | |
53 | 53 | $this->setCallbackForm($callbackForm); |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | /** |
78 | 78 | * @return string |
79 | 79 | */ |
80 | - public function getCallbackForm() : ?string |
|
80 | + public function getCallbackForm() : ? string |
|
81 | 81 | { |
82 | 82 | return $this->callbackForm; |
83 | 83 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * @param string $callbackForm |
87 | 87 | * @return Config |
88 | 88 | */ |
89 | - public function setCallbackForm(?string $callbackForm) : self |
|
89 | + public function setCallbackForm(? string $callbackForm) : self |
|
90 | 90 | { |
91 | 91 | $this->callbackForm = $callbackForm; |
92 | 92 | return $this; |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | /** |
96 | 96 | * @return string |
97 | 97 | */ |
98 | - public function getCallbackOk() : ?string |
|
98 | + public function getCallbackOk() : ? string |
|
99 | 99 | { |
100 | 100 | return $this->callbackOk; |
101 | 101 | } |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * @param string $callbackOk |
105 | 105 | * @return Config |
106 | 106 | */ |
107 | - public function setCallbackOk(?string $callbackOk) : self |
|
107 | + public function setCallbackOk(? string $callbackOk) : self |
|
108 | 108 | { |
109 | 109 | $this->callbackOk = $callbackOk; |
110 | 110 | return $this; |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | /** |
114 | 114 | * @return string |
115 | 115 | */ |
116 | - public function getCallbackFail() : ?string |
|
116 | + public function getCallbackFail() : ? string |
|
117 | 117 | { |
118 | 118 | return $this->callbackFail; |
119 | 119 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | * @param string $callbackFail |
123 | 123 | * @return Config |
124 | 124 | */ |
125 | - public function setCallbackFail(?string $callbackFail) : self |
|
125 | + public function setCallbackFail(? string $callbackFail) : self |
|
126 | 126 | { |
127 | 127 | $this->callbackFail = $callbackFail; |
128 | 128 | return $this; |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | /** |
132 | 132 | * @return string |
133 | 133 | */ |
134 | - public function getCallbackRedirect() : ?string |
|
134 | + public function getCallbackRedirect() : ? string |
|
135 | 135 | { |
136 | 136 | return $this->callbackRedirect; |
137 | 137 | } |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | * @param string $callbackRedirect |
141 | 141 | * @return Config |
142 | 142 | */ |
143 | - public function setCallbackRedirect(?string $callbackRedirect) : self |
|
143 | + public function setCallbackRedirect(? string $callbackRedirect) : self |
|
144 | 144 | { |
145 | 145 | $this->callbackRedirect = $callbackRedirect; |
146 | 146 | return $this; |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | /** |
150 | 150 | * @return string |
151 | 151 | */ |
152 | - public function getCallbackOpen() : ?string |
|
152 | + public function getCallbackOpen() : ? string |
|
153 | 153 | { |
154 | 154 | return $this->callbackOpen; |
155 | 155 | } |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | * @param string $callbackOpen |
159 | 159 | * @return Config |
160 | 160 | */ |
161 | - public function setCallbackOpen(?string $callbackOpen) : self |
|
161 | + public function setCallbackOpen(? string $callbackOpen) : self |
|
162 | 162 | { |
163 | 163 | $this->callbackOpen = $callbackOpen; |
164 | 164 | return $this; |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | /** |
168 | 168 | * @return string |
169 | 169 | */ |
170 | - public function getCallbackNotification() : ?string |
|
170 | + public function getCallbackNotification() : ? string |
|
171 | 171 | { |
172 | 172 | return $this->callbackNotification; |
173 | 173 | } |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | * @param string $callbackNotification |
177 | 177 | * @return Config |
178 | 178 | */ |
179 | - public function setCallbackNotification(?string $callbackNotification) : self |
|
179 | + public function setCallbackNotification(? string $callbackNotification) : self |
|
180 | 180 | { |
181 | 181 | $this->callbackNotification = $callbackNotification; |
182 | 182 | return $this; |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | /** |
186 | 186 | * @return string |
187 | 187 | */ |
188 | - public function getCallbackVerifyOrder() : ?string |
|
188 | + public function getCallbackVerifyOrder() : ? string |
|
189 | 189 | { |
190 | 190 | return $this->callbackVerifyOrder; |
191 | 191 | } |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | * @param string $callbackVerifyOrder |
195 | 195 | * @return Config |
196 | 196 | */ |
197 | - public function setCallbackVerifyOrder(?string $callbackVerifyOrder) : self |
|
197 | + public function setCallbackVerifyOrder(? string $callbackVerifyOrder) : self |
|
198 | 198 | { |
199 | 199 | $this->callbackVerifyOrder = $callbackVerifyOrder; |
200 | 200 | return $this; |
@@ -140,27 +140,27 @@ discard block |
||
140 | 140 | * @param string $username |
141 | 141 | */ |
142 | 142 | public function __construct( |
143 | - ?string $bankName = null, |
|
144 | - ?string $bankPhone = null, |
|
145 | - ?string $billingAddress = null, |
|
146 | - ?string $billingCity = null, |
|
147 | - ?string $billingCountry = null, |
|
148 | - ?string $billingFirstName = null, |
|
149 | - ?string $billingLastName = null, |
|
150 | - ?string $billingPostal = null, |
|
151 | - ?string $billingRegion = null, |
|
152 | - ?\DateTimeInterface $birthDate = null, |
|
153 | - ?string $customerPhone = null, |
|
154 | - ?string $email = null, |
|
155 | - ?string $gender = null, |
|
156 | - ?string $shippingAddress = null, |
|
157 | - ?string $shippingCity = null, |
|
158 | - ?string $shippingCountry = null, |
|
159 | - ?string $shippingFirstName = null, |
|
160 | - ?string $shippingLastName = null, |
|
161 | - ?string $shippingPostal = null, |
|
162 | - ?string $shippingRegion = null, |
|
163 | - ?string $username = null |
|
143 | + ? string $bankName = null, |
|
144 | + ? string $bankPhone = null, |
|
145 | + ? string $billingAddress = null, |
|
146 | + ? string $billingCity = null, |
|
147 | + ? string $billingCountry = null, |
|
148 | + ? string $billingFirstName = null, |
|
149 | + ? string $billingLastName = null, |
|
150 | + ? string $billingPostal = null, |
|
151 | + ? string $billingRegion = null, |
|
152 | + ? \DateTimeInterface $birthDate = null, |
|
153 | + ? string $customerPhone = null, |
|
154 | + ? string $email = null, |
|
155 | + ? string $gender = null, |
|
156 | + ? string $shippingAddress = null, |
|
157 | + ? string $shippingCity = null, |
|
158 | + ? string $shippingCountry = null, |
|
159 | + ? string $shippingFirstName = null, |
|
160 | + ? string $shippingLastName = null, |
|
161 | + ? string $shippingPostal = null, |
|
162 | + ? string $shippingRegion = null, |
|
163 | + ? string $username = null |
|
164 | 164 | ) { |
165 | 165 | $this->setBankName($bankName); |
166 | 166 | $this->setBankPhone($bankPhone); |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | /** |
229 | 229 | * @return string |
230 | 230 | */ |
231 | - public function getBankName() : ?string |
|
231 | + public function getBankName() : ? string |
|
232 | 232 | { |
233 | 233 | return $this->bankName; |
234 | 234 | } |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | * @param string $bankName |
238 | 238 | * @return CustomerInfo |
239 | 239 | */ |
240 | - public function setBankName(?string $bankName) : self |
|
240 | + public function setBankName(? string $bankName) : self |
|
241 | 241 | { |
242 | 242 | $this->bankName = $bankName; |
243 | 243 | return $this; |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | /** |
247 | 247 | * @return string |
248 | 248 | */ |
249 | - public function getBankPhone() : ?string |
|
249 | + public function getBankPhone() : ? string |
|
250 | 250 | { |
251 | 251 | return $this->bankPhone; |
252 | 252 | } |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | * @param string $bankPhone |
256 | 256 | * @return CustomerInfo |
257 | 257 | */ |
258 | - public function setBankPhone(?string $bankPhone) : self |
|
258 | + public function setBankPhone(? string $bankPhone) : self |
|
259 | 259 | { |
260 | 260 | $this->bankPhone = $bankPhone; |
261 | 261 | return $this; |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | /** |
265 | 265 | * @return string |
266 | 266 | */ |
267 | - public function getBillingAddress() : ?string |
|
267 | + public function getBillingAddress() : ? string |
|
268 | 268 | { |
269 | 269 | return $this->billingAddress; |
270 | 270 | } |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | * @param string $billingAddress |
274 | 274 | * @return CustomerInfo |
275 | 275 | */ |
276 | - public function setBillingAddress(?string $billingAddress) : self |
|
276 | + public function setBillingAddress(? string $billingAddress) : self |
|
277 | 277 | { |
278 | 278 | $this->billingAddress = $billingAddress; |
279 | 279 | return $this; |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | /** |
283 | 283 | * @return string |
284 | 284 | */ |
285 | - public function getBillingCity() : ?string |
|
285 | + public function getBillingCity() : ? string |
|
286 | 286 | { |
287 | 287 | return $this->billingCity; |
288 | 288 | } |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | * @param string $billingCity |
292 | 292 | * @return CustomerInfo |
293 | 293 | */ |
294 | - public function setBillingCity(?string $billingCity) : self |
|
294 | + public function setBillingCity(? string $billingCity) : self |
|
295 | 295 | { |
296 | 296 | $this->billingCity = $billingCity; |
297 | 297 | return $this; |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | /** |
301 | 301 | * @return string |
302 | 302 | */ |
303 | - public function getBillingCountry() : ?string |
|
303 | + public function getBillingCountry() : ? string |
|
304 | 304 | { |
305 | 305 | return $this->billingCountry; |
306 | 306 | } |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | * @param string $billingCountry |
310 | 310 | * @return CustomerInfo |
311 | 311 | */ |
312 | - public function setBillingCountry(?string $billingCountry) : self |
|
312 | + public function setBillingCountry(? string $billingCountry) : self |
|
313 | 313 | { |
314 | 314 | $this->billingCountry = $billingCountry; |
315 | 315 | return $this; |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | /** |
319 | 319 | * @return string |
320 | 320 | */ |
321 | - public function getBillingFirstName() : ?string |
|
321 | + public function getBillingFirstName() : ? string |
|
322 | 322 | { |
323 | 323 | return $this->billingFirstName; |
324 | 324 | } |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | * @param string $billingFirstName |
328 | 328 | * @return CustomerInfo |
329 | 329 | */ |
330 | - public function setBillingFirstName(?string $billingFirstName) : self |
|
330 | + public function setBillingFirstName(? string $billingFirstName) : self |
|
331 | 331 | { |
332 | 332 | $this->billingFirstName = $billingFirstName; |
333 | 333 | return $this; |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | /** |
337 | 337 | * @return string |
338 | 338 | */ |
339 | - public function getBillingLastName() : ?string |
|
339 | + public function getBillingLastName() : ? string |
|
340 | 340 | { |
341 | 341 | return $this->billingLastName; |
342 | 342 | } |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | * @param string $billingLastName |
346 | 346 | * @return CustomerInfo |
347 | 347 | */ |
348 | - public function setBillingLastName(?string $billingLastName) : self |
|
348 | + public function setBillingLastName(? string $billingLastName) : self |
|
349 | 349 | { |
350 | 350 | $this->billingLastName = $billingLastName; |
351 | 351 | return $this; |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | /** |
355 | 355 | * @return string |
356 | 356 | */ |
357 | - public function getBillingPostal() : ?string |
|
357 | + public function getBillingPostal() : ? string |
|
358 | 358 | { |
359 | 359 | return $this->billingPostal; |
360 | 360 | } |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | * @param string $billingPostal |
364 | 364 | * @return CustomerInfo |
365 | 365 | */ |
366 | - public function setBillingPostal(?string $billingPostal) : self |
|
366 | + public function setBillingPostal(? string $billingPostal) : self |
|
367 | 367 | { |
368 | 368 | $this->billingPostal = $billingPostal; |
369 | 369 | return $this; |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | /** |
373 | 373 | * @return string |
374 | 374 | */ |
375 | - public function getBillingRegion() : ?string |
|
375 | + public function getBillingRegion() : ? string |
|
376 | 376 | { |
377 | 377 | return $this->billingRegion; |
378 | 378 | } |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | * @param string $billingRegion |
382 | 382 | * @return CustomerInfo |
383 | 383 | */ |
384 | - public function setBillingRegion(?string $billingRegion) : self |
|
384 | + public function setBillingRegion(? string $billingRegion) : self |
|
385 | 385 | { |
386 | 386 | $this->billingRegion = $billingRegion; |
387 | 387 | return $this; |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | * @param \DateTimeInterface $birthDate |
400 | 400 | * @return CustomerInfo |
401 | 401 | */ |
402 | - public function setBirthDate(?\DateTimeInterface $birthDate) : self |
|
402 | + public function setBirthDate(? \DateTimeInterface $birthDate) : self |
|
403 | 403 | { |
404 | 404 | $this->birthDate = $birthDate; |
405 | 405 | return $this; |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | /** |
409 | 409 | * @return string |
410 | 410 | */ |
411 | - public function getCustomerPhone() : ?string |
|
411 | + public function getCustomerPhone() : ? string |
|
412 | 412 | { |
413 | 413 | return $this->customerPhone; |
414 | 414 | } |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | * @param string $customerPhone |
418 | 418 | * @return CustomerInfo |
419 | 419 | */ |
420 | - public function setCustomerPhone(?string $customerPhone) : self |
|
420 | + public function setCustomerPhone(? string $customerPhone) : self |
|
421 | 421 | { |
422 | 422 | $this->customerPhone = $customerPhone; |
423 | 423 | return $this; |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | /** |
427 | 427 | * @return string |
428 | 428 | */ |
429 | - public function getEmail() : ?string |
|
429 | + public function getEmail() : ? string |
|
430 | 430 | { |
431 | 431 | return $this->email; |
432 | 432 | } |
@@ -435,7 +435,7 @@ discard block |
||
435 | 435 | * @param string $email |
436 | 436 | * @return CustomerInfo |
437 | 437 | */ |
438 | - public function setEmail(?string $email) : self |
|
438 | + public function setEmail(? string $email) : self |
|
439 | 439 | { |
440 | 440 | $this->email = $email; |
441 | 441 | return $this; |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | /** |
445 | 445 | * @return string |
446 | 446 | */ |
447 | - public function getGender() : ?string |
|
447 | + public function getGender() : ? string |
|
448 | 448 | { |
449 | 449 | return $this->gender; |
450 | 450 | } |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | * @param string $gender |
454 | 454 | * @return CustomerInfo |
455 | 455 | */ |
456 | - public function setGender(?string $gender) : self |
|
456 | + public function setGender(? string $gender) : self |
|
457 | 457 | { |
458 | 458 | Assert::that($gender)->nullOr()->inArray(static::getGenders()); |
459 | 459 | $this->gender = $gender; |
@@ -463,7 +463,7 @@ discard block |
||
463 | 463 | /** |
464 | 464 | * @return string |
465 | 465 | */ |
466 | - public function getShippingAddress() : ?string |
|
466 | + public function getShippingAddress() : ? string |
|
467 | 467 | { |
468 | 468 | return $this->shippingAddress; |
469 | 469 | } |
@@ -472,7 +472,7 @@ discard block |
||
472 | 472 | * @param string $shippingAddress |
473 | 473 | * @return CustomerInfo |
474 | 474 | */ |
475 | - public function setShippingAddress(?string $shippingAddress) : self |
|
475 | + public function setShippingAddress(? string $shippingAddress) : self |
|
476 | 476 | { |
477 | 477 | $this->shippingAddress = $shippingAddress; |
478 | 478 | return $this; |
@@ -481,7 +481,7 @@ discard block |
||
481 | 481 | /** |
482 | 482 | * @return string |
483 | 483 | */ |
484 | - public function getShippingCity() : ?string |
|
484 | + public function getShippingCity() : ? string |
|
485 | 485 | { |
486 | 486 | return $this->shippingCity; |
487 | 487 | } |
@@ -490,7 +490,7 @@ discard block |
||
490 | 490 | * @param string $shippingCity |
491 | 491 | * @return CustomerInfo |
492 | 492 | */ |
493 | - public function setShippingCity(?string $shippingCity) : self |
|
493 | + public function setShippingCity(? string $shippingCity) : self |
|
494 | 494 | { |
495 | 495 | $this->shippingCity = $shippingCity; |
496 | 496 | return $this; |
@@ -499,7 +499,7 @@ discard block |
||
499 | 499 | /** |
500 | 500 | * @return string |
501 | 501 | */ |
502 | - public function getShippingCountry() : ?string |
|
502 | + public function getShippingCountry() : ? string |
|
503 | 503 | { |
504 | 504 | return $this->shippingCountry; |
505 | 505 | } |
@@ -508,7 +508,7 @@ discard block |
||
508 | 508 | * @param string $shippingCountry |
509 | 509 | * @return CustomerInfo |
510 | 510 | */ |
511 | - public function setShippingCountry(?string $shippingCountry) : self |
|
511 | + public function setShippingCountry(? string $shippingCountry) : self |
|
512 | 512 | { |
513 | 513 | $this->shippingCountry = $shippingCountry; |
514 | 514 | return $this; |
@@ -517,7 +517,7 @@ discard block |
||
517 | 517 | /** |
518 | 518 | * @return string |
519 | 519 | */ |
520 | - public function getShippingFirstName() : ?string |
|
520 | + public function getShippingFirstName() : ? string |
|
521 | 521 | { |
522 | 522 | return $this->shippingFirstName; |
523 | 523 | } |
@@ -526,7 +526,7 @@ discard block |
||
526 | 526 | * @param string $shippingFirstName |
527 | 527 | * @return CustomerInfo |
528 | 528 | */ |
529 | - public function setShippingFirstName(?string $shippingFirstName) : self |
|
529 | + public function setShippingFirstName(? string $shippingFirstName) : self |
|
530 | 530 | { |
531 | 531 | $this->shippingFirstName = $shippingFirstName; |
532 | 532 | return $this; |
@@ -535,7 +535,7 @@ discard block |
||
535 | 535 | /** |
536 | 536 | * @return string |
537 | 537 | */ |
538 | - public function getShippingLastName() : ?string |
|
538 | + public function getShippingLastName() : ? string |
|
539 | 539 | { |
540 | 540 | return $this->shippingLastName; |
541 | 541 | } |
@@ -544,7 +544,7 @@ discard block |
||
544 | 544 | * @param string $shippingLastName |
545 | 545 | * @return CustomerInfo |
546 | 546 | */ |
547 | - public function setShippingLastName(?string $shippingLastName) : self |
|
547 | + public function setShippingLastName(? string $shippingLastName) : self |
|
548 | 548 | { |
549 | 549 | $this->shippingLastName = $shippingLastName; |
550 | 550 | return $this; |
@@ -553,7 +553,7 @@ discard block |
||
553 | 553 | /** |
554 | 554 | * @return string |
555 | 555 | */ |
556 | - public function getShippingPostal() : ?string |
|
556 | + public function getShippingPostal() : ? string |
|
557 | 557 | { |
558 | 558 | return $this->shippingPostal; |
559 | 559 | } |
@@ -562,7 +562,7 @@ discard block |
||
562 | 562 | * @param string $shippingPostal |
563 | 563 | * @return CustomerInfo |
564 | 564 | */ |
565 | - public function setShippingPostal(?string $shippingPostal) : self |
|
565 | + public function setShippingPostal(? string $shippingPostal) : self |
|
566 | 566 | { |
567 | 567 | $this->shippingPostal = $shippingPostal; |
568 | 568 | return $this; |
@@ -571,7 +571,7 @@ discard block |
||
571 | 571 | /** |
572 | 572 | * @return string |
573 | 573 | */ |
574 | - public function getShippingRegion() : ?string |
|
574 | + public function getShippingRegion() : ? string |
|
575 | 575 | { |
576 | 576 | return $this->shippingRegion; |
577 | 577 | } |
@@ -580,7 +580,7 @@ discard block |
||
580 | 580 | * @param string $shippingRegion |
581 | 581 | * @return CustomerInfo |
582 | 582 | */ |
583 | - public function setShippingRegion(?string $shippingRegion) : self |
|
583 | + public function setShippingRegion(? string $shippingRegion) : self |
|
584 | 584 | { |
585 | 585 | $this->shippingRegion = $shippingRegion; |
586 | 586 | return $this; |
@@ -589,7 +589,7 @@ discard block |
||
589 | 589 | /** |
590 | 590 | * @return string |
591 | 591 | */ |
592 | - public function getUsername() : ?string |
|
592 | + public function getUsername() : ? string |
|
593 | 593 | { |
594 | 594 | return $this->username; |
595 | 595 | } |
@@ -598,7 +598,7 @@ discard block |
||
598 | 598 | * @param string $username |
599 | 599 | * @return CustomerInfo |
600 | 600 | */ |
601 | - public function setUsername(?string $username) : self |
|
601 | + public function setUsername(? string $username) : self |
|
602 | 602 | { |
603 | 603 | $this->username = $username; |
604 | 604 | return $this; |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | /** |
283 | 283 | * @return string |
284 | 284 | */ |
285 | - public function getLanguage() : ?string |
|
285 | + public function getLanguage() : ? string |
|
286 | 286 | { |
287 | 287 | return $this->language; |
288 | 288 | } |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | * @param string $language |
292 | 292 | * @return PaymentRequest |
293 | 293 | */ |
294 | - public function setLanguage(?string $language) : self |
|
294 | + public function setLanguage(? string $language) : self |
|
295 | 295 | { |
296 | 296 | $this->language = $language; |
297 | 297 | return $this; |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | /** |
301 | 301 | * @return array |
302 | 302 | */ |
303 | - public function getTransactionInfo() : ?array |
|
303 | + public function getTransactionInfo() : ? array |
|
304 | 304 | { |
305 | 305 | return $this->transactionInfo; |
306 | 306 | } |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | * @param array $transactionInfo |
310 | 310 | * @return PaymentRequest |
311 | 311 | */ |
312 | - public function setTransactionInfo(?array $transactionInfo) : self |
|
312 | + public function setTransactionInfo(? array $transactionInfo) : self |
|
313 | 313 | { |
314 | 314 | $this->transactionInfo = $transactionInfo; |
315 | 315 | return $this; |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | /** |
319 | 319 | * @return string |
320 | 320 | */ |
321 | - public function getType() : ?string |
|
321 | + public function getType() : ? string |
|
322 | 322 | { |
323 | 323 | return $this->type; |
324 | 324 | } |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | * @param string $type |
328 | 328 | * @return PaymentRequest |
329 | 329 | */ |
330 | - public function setType(?string $type) : self |
|
330 | + public function setType(? string $type) : self |
|
331 | 331 | { |
332 | 332 | $this->type = $type; |
333 | 333 | return $this; |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | /** |
337 | 337 | * @return string |
338 | 338 | */ |
339 | - public function getCcToken() : ?string |
|
339 | + public function getCcToken() : ? string |
|
340 | 340 | { |
341 | 341 | return $this->ccToken; |
342 | 342 | } |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | * @param string $ccToken |
346 | 346 | * @return PaymentRequest |
347 | 347 | */ |
348 | - public function setCcToken(?string $ccToken) : self |
|
348 | + public function setCcToken(? string $ccToken) : self |
|
349 | 349 | { |
350 | 350 | $this->ccToken = $ccToken; |
351 | 351 | return $this; |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | /** |
355 | 355 | * @return string |
356 | 356 | */ |
357 | - public function getSaleReconciliationIdentifier() : ?string |
|
357 | + public function getSaleReconciliationIdentifier() : ? string |
|
358 | 358 | { |
359 | 359 | return $this->saleReconciliationIdentifier; |
360 | 360 | } |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | * @param string $saleReconciliationIdentifier |
364 | 364 | * @return PaymentRequest |
365 | 365 | */ |
366 | - public function setSaleReconciliationIdentifier(?string $saleReconciliationIdentifier) : self |
|
366 | + public function setSaleReconciliationIdentifier(? string $saleReconciliationIdentifier) : self |
|
367 | 367 | { |
368 | 368 | $this->saleReconciliationIdentifier = $saleReconciliationIdentifier; |
369 | 369 | return $this; |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | /** |
373 | 373 | * @return string |
374 | 374 | */ |
375 | - public function getSaleInvoiceNumber() : ?string |
|
375 | + public function getSaleInvoiceNumber() : ? string |
|
376 | 376 | { |
377 | 377 | return $this->saleInvoiceNumber; |
378 | 378 | } |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | * @param string $saleInvoiceNumber |
382 | 382 | * @return PaymentRequest |
383 | 383 | */ |
384 | - public function setSaleInvoiceNumber(?string $saleInvoiceNumber) : self |
|
384 | + public function setSaleInvoiceNumber(? string $saleInvoiceNumber) : self |
|
385 | 385 | { |
386 | 386 | $this->saleInvoiceNumber = $saleInvoiceNumber; |
387 | 387 | return $this; |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | /** |
391 | 391 | * @return float |
392 | 392 | */ |
393 | - public function getSalesTax() : ?float |
|
393 | + public function getSalesTax() : ? float |
|
394 | 394 | { |
395 | 395 | return $this->salesTax; |
396 | 396 | } |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | * @param float $salesTax |
400 | 400 | * @return PaymentRequest |
401 | 401 | */ |
402 | - public function setSalesTax(?float $salesTax) : self |
|
402 | + public function setSalesTax(? float $salesTax) : self |
|
403 | 403 | { |
404 | 404 | $this->salesTax = $salesTax; |
405 | 405 | return $this; |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | /** |
409 | 409 | * @return string |
410 | 410 | */ |
411 | - public function getCookie() : ?string |
|
411 | + public function getCookie() : ? string |
|
412 | 412 | { |
413 | 413 | return $this->cookie; |
414 | 414 | } |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | * @param string $cookie |
418 | 418 | * @return PaymentRequest |
419 | 419 | */ |
420 | - public function setCookie(?string $cookie) : self |
|
420 | + public function setCookie(? string $cookie) : self |
|
421 | 421 | { |
422 | 422 | $this->cookie = $cookie; |
423 | 423 | return $this; |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | /** |
427 | 427 | * @return string |
428 | 428 | */ |
429 | - public function getPaymentSource() : ?string |
|
429 | + public function getPaymentSource() : ? string |
|
430 | 430 | { |
431 | 431 | return $this->paymentSource; |
432 | 432 | } |
@@ -435,7 +435,7 @@ discard block |
||
435 | 435 | * @param string $paymentSource |
436 | 436 | * @return PaymentRequest |
437 | 437 | */ |
438 | - public function setPaymentSource(?string $paymentSource) : self |
|
438 | + public function setPaymentSource(? string $paymentSource) : self |
|
439 | 439 | { |
440 | 440 | $this->paymentSource = $paymentSource; |
441 | 441 | return $this; |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | /** |
445 | 445 | * @return string |
446 | 446 | */ |
447 | - public function getFraudService() : ?string |
|
447 | + public function getFraudService() : ? string |
|
448 | 448 | { |
449 | 449 | return $this->fraudService; |
450 | 450 | } |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | * @param string $fraudService |
454 | 454 | * @return PaymentRequest |
455 | 455 | */ |
456 | - public function setFraudService(?string $fraudService) : self |
|
456 | + public function setFraudService(? string $fraudService) : self |
|
457 | 457 | { |
458 | 458 | $this->fraudService = $fraudService; |
459 | 459 | return $this; |
@@ -462,7 +462,7 @@ discard block |
||
462 | 462 | /** |
463 | 463 | * @return string |
464 | 464 | */ |
465 | - public function getShippingMethod() : ?string |
|
465 | + public function getShippingMethod() : ? string |
|
466 | 466 | { |
467 | 467 | return $this->shippingMethod; |
468 | 468 | } |
@@ -471,7 +471,7 @@ discard block |
||
471 | 471 | * @param string $shippingMethod |
472 | 472 | * @return PaymentRequest |
473 | 473 | */ |
474 | - public function setShippingMethod(?string $shippingMethod) : self |
|
474 | + public function setShippingMethod(? string $shippingMethod) : self |
|
475 | 475 | { |
476 | 476 | $this->shippingMethod = $shippingMethod; |
477 | 477 | return $this; |
@@ -480,7 +480,7 @@ discard block |
||
480 | 480 | /** |
481 | 481 | * @return string |
482 | 482 | */ |
483 | - public function getCustomerCreatedDate() : ?string |
|
483 | + public function getCustomerCreatedDate() : ? string |
|
484 | 484 | { |
485 | 485 | return $this->customerCreatedDate; |
486 | 486 | } |
@@ -489,7 +489,7 @@ discard block |
||
489 | 489 | * @param string $customerCreatedDate |
490 | 490 | * @return PaymentRequest |
491 | 491 | */ |
492 | - public function setCustomerCreatedDate(?string $customerCreatedDate) : self |
|
492 | + public function setCustomerCreatedDate(? string $customerCreatedDate) : self |
|
493 | 493 | { |
494 | 494 | $this->customerCreatedDate = $customerCreatedDate; |
495 | 495 | return $this; |
@@ -498,7 +498,7 @@ discard block |
||
498 | 498 | /** |
499 | 499 | * @return string |
500 | 500 | */ |
501 | - public function getOrganisationNumber() : ?string |
|
501 | + public function getOrganisationNumber() : ? string |
|
502 | 502 | { |
503 | 503 | return $this->organisationNumber; |
504 | 504 | } |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | * @param string $organisationNumber |
508 | 508 | * @return PaymentRequest |
509 | 509 | */ |
510 | - public function setOrganisationNumber(?string $organisationNumber) : self |
|
510 | + public function setOrganisationNumber(? string $organisationNumber) : self |
|
511 | 511 | { |
512 | 512 | $this->organisationNumber = $organisationNumber; |
513 | 513 | return $this; |
@@ -516,7 +516,7 @@ discard block |
||
516 | 516 | /** |
517 | 517 | * @return string |
518 | 518 | */ |
519 | - public function getAccountOffer() : ?string |
|
519 | + public function getAccountOffer() : ? string |
|
520 | 520 | { |
521 | 521 | return $this->accountOffer; |
522 | 522 | } |
@@ -525,7 +525,7 @@ discard block |
||
525 | 525 | * @param string $accountOffer |
526 | 526 | * @return PaymentRequest |
527 | 527 | */ |
528 | - public function setAccountOffer(?string $accountOffer) : self |
|
528 | + public function setAccountOffer(? string $accountOffer) : self |
|
529 | 529 | { |
530 | 530 | $this->accountOffer = $accountOffer; |
531 | 531 | return $this; |
@@ -534,7 +534,7 @@ discard block |
||
534 | 534 | /** |
535 | 535 | * @return OrderLineInterface[] |
536 | 536 | */ |
537 | - public function getOrderLines() : ?array |
|
537 | + public function getOrderLines() : ? array |
|
538 | 538 | { |
539 | 539 | return $this->orderLines; |
540 | 540 | } |
@@ -543,7 +543,7 @@ discard block |
||
543 | 543 | * @param OrderLineInterface[] $orderLines |
544 | 544 | * @return PaymentRequest |
545 | 545 | */ |
546 | - public function setOrderLines(?array $orderLines) : self |
|
546 | + public function setOrderLines(? array $orderLines) : self |
|
547 | 547 | { |
548 | 548 | $this->orderLines = $orderLines; |
549 | 549 | return $this; |
@@ -63,12 +63,12 @@ discard block |
||
63 | 63 | $itemId, |
64 | 64 | $quantity, |
65 | 65 | $unitPrice, |
66 | - ?float $taxPercent = null, |
|
67 | - ?float $taxAmount = null, |
|
68 | - ?string $unitCode = null, |
|
69 | - ?float $discount = null, |
|
70 | - ?string $goodsType = null, |
|
71 | - ?string $imageUrl = null |
|
66 | + ? float $taxPercent = null, |
|
67 | + ? float $taxAmount = null, |
|
68 | + ? string $unitCode = null, |
|
69 | + ? float $discount = null, |
|
70 | + ? string $goodsType = null, |
|
71 | + ? string $imageUrl = null |
|
72 | 72 | ) { |
73 | 73 | |
74 | 74 | $this->setDescription($description); |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | /** |
190 | 190 | * @return float |
191 | 191 | */ |
192 | - public function getTaxPercent() : ?float |
|
192 | + public function getTaxPercent() : ? float |
|
193 | 193 | { |
194 | 194 | return $this->taxPercent; |
195 | 195 | } |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | * @param float $taxPercent |
199 | 199 | * @return OrderLine |
200 | 200 | */ |
201 | - public function setTaxPercent(?float $taxPercent) : self |
|
201 | + public function setTaxPercent(? float $taxPercent) : self |
|
202 | 202 | { |
203 | 203 | $this->taxPercent = $taxPercent; |
204 | 204 | return $this; |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | /** |
208 | 208 | * @return float |
209 | 209 | */ |
210 | - public function getTaxAmount() : ?float |
|
210 | + public function getTaxAmount() : ? float |
|
211 | 211 | { |
212 | 212 | return $this->taxAmount; |
213 | 213 | } |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | * @param float $taxAmount |
217 | 217 | * @return OrderLine |
218 | 218 | */ |
219 | - public function setTaxAmount(?float $taxAmount) : self |
|
219 | + public function setTaxAmount(? float $taxAmount) : self |
|
220 | 220 | { |
221 | 221 | $this->taxAmount = $taxAmount; |
222 | 222 | return $this; |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | /** |
226 | 226 | * @return string |
227 | 227 | */ |
228 | - public function getUnitCode() : ?string |
|
228 | + public function getUnitCode() : ? string |
|
229 | 229 | { |
230 | 230 | return $this->unitCode; |
231 | 231 | } |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | * @param string $unitCode |
235 | 235 | * @return OrderLine |
236 | 236 | */ |
237 | - public function setUnitCode(?string $unitCode) : self |
|
237 | + public function setUnitCode(? string $unitCode) : self |
|
238 | 238 | { |
239 | 239 | $this->unitCode = $unitCode; |
240 | 240 | return $this; |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | /** |
244 | 244 | * @return float |
245 | 245 | */ |
246 | - public function getDiscount() : ?float |
|
246 | + public function getDiscount() : ? float |
|
247 | 247 | { |
248 | 248 | return $this->discount; |
249 | 249 | } |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | * @param float $discount |
253 | 253 | * @return OrderLine |
254 | 254 | */ |
255 | - public function setDiscount(?float $discount) : self |
|
255 | + public function setDiscount(? float $discount) : self |
|
256 | 256 | { |
257 | 257 | $this->discount = $discount; |
258 | 258 | return $this; |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | /** |
262 | 262 | * @return string |
263 | 263 | */ |
264 | - public function getGoodsType() : ?string |
|
264 | + public function getGoodsType() : ? string |
|
265 | 265 | { |
266 | 266 | return $this->goodsType; |
267 | 267 | } |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | * @param string $goodsType |
271 | 271 | * @return OrderLine |
272 | 272 | */ |
273 | - public function setGoodsType(?string $goodsType) : self |
|
273 | + public function setGoodsType(? string $goodsType) : self |
|
274 | 274 | { |
275 | 275 | $this->goodsType = $goodsType; |
276 | 276 | return $this; |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | /** |
280 | 280 | * @return string |
281 | 281 | */ |
282 | - public function getImageUrl() : ?string |
|
282 | + public function getImageUrl() : ? string |
|
283 | 283 | { |
284 | 284 | return $this->imageUrl; |
285 | 285 | } |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | * @param string $imageUrl |
289 | 289 | * @return OrderLine |
290 | 290 | */ |
291 | - public function setImageUrl(?string $imageUrl) : self |
|
291 | + public function setImageUrl(? string $imageUrl) : self |
|
292 | 292 | { |
293 | 293 | $this->imageUrl = $imageUrl; |
294 | 294 | return $this; |
@@ -38,11 +38,11 @@ discard block |
||
38 | 38 | |
39 | 39 | public function __construct( |
40 | 40 | string $transactionId, |
41 | - ?float $amount = null, |
|
42 | - ?string $reconciliationIdentifier = null, |
|
43 | - ?string $invoiceNumber = null, |
|
44 | - ?string $salesTax = null, |
|
45 | - ?array |
|
41 | + ? float $amount = null, |
|
42 | + ? string $reconciliationIdentifier = null, |
|
43 | + ? string $invoiceNumber = null, |
|
44 | + ? string $salesTax = null, |
|
45 | + ? array |
|
46 | 46 | $orderLines = [] |
47 | 47 | ) { |
48 | 48 | $this->setTransactionId($transactionId); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | /** |
111 | 111 | * @return float |
112 | 112 | */ |
113 | - public function getAmount() : ?float |
|
113 | + public function getAmount() : ? float |
|
114 | 114 | { |
115 | 115 | return $this->amount; |
116 | 116 | } |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * @param float $amount |
120 | 120 | * @return CaptureReservation |
121 | 121 | */ |
122 | - public function setAmount(?float $amount) : self |
|
122 | + public function setAmount(? float $amount) : self |
|
123 | 123 | { |
124 | 124 | $this->amount = $amount; |
125 | 125 | return $this; |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | /** |
129 | 129 | * @return string |
130 | 130 | */ |
131 | - public function getReconciliationIdentifier() : ?string |
|
131 | + public function getReconciliationIdentifier() : ? string |
|
132 | 132 | { |
133 | 133 | return $this->reconciliationIdentifier; |
134 | 134 | } |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | * @param string $reconciliationIdentifier |
138 | 138 | * @return CaptureReservation |
139 | 139 | */ |
140 | - public function setReconciliationIdentifier(?string $reconciliationIdentifier) : self |
|
140 | + public function setReconciliationIdentifier(? string $reconciliationIdentifier) : self |
|
141 | 141 | { |
142 | 142 | $this->reconciliationIdentifier = $reconciliationIdentifier; |
143 | 143 | return $this; |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | /** |
147 | 147 | * @return string |
148 | 148 | */ |
149 | - public function getInvoiceNumber() : ?string |
|
149 | + public function getInvoiceNumber() : ? string |
|
150 | 150 | { |
151 | 151 | return $this->invoiceNumber; |
152 | 152 | } |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * @param string $invoiceNumber |
156 | 156 | * @return CaptureReservation |
157 | 157 | */ |
158 | - public function setInvoiceNumber(?string $invoiceNumber) : self |
|
158 | + public function setInvoiceNumber(? string $invoiceNumber) : self |
|
159 | 159 | { |
160 | 160 | $this->invoiceNumber = $invoiceNumber; |
161 | 161 | return $this; |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | /** |
165 | 165 | * @return string |
166 | 166 | */ |
167 | - public function getSalesTax() : ?string |
|
167 | + public function getSalesTax() : ? string |
|
168 | 168 | { |
169 | 169 | return $this->salesTax; |
170 | 170 | } |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | * @param string $salesTax |
174 | 174 | * @return CaptureReservation |
175 | 175 | */ |
176 | - public function setSalesTax(?string $salesTax) : self |
|
176 | + public function setSalesTax(? string $salesTax) : self |
|
177 | 177 | { |
178 | 178 | $this->salesTax = $salesTax; |
179 | 179 | return $this; |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | /** |
183 | 183 | * @return OrderLineInterface[] |
184 | 184 | */ |
185 | - public function getOrderLines() : ?array |
|
185 | + public function getOrderLines() : ? array |
|
186 | 186 | { |
187 | 187 | return $this->orderLines; |
188 | 188 | } |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | * @param OrderLineInterface[] $orderLines |
192 | 192 | * @return CaptureReservation |
193 | 193 | */ |
194 | - public function setOrderLines(?array $orderLines) : self |
|
194 | + public function setOrderLines(? array $orderLines) : self |
|
195 | 195 | { |
196 | 196 | $this->orderLines = $orderLines; |
197 | 197 | return $this; |