Total Complexity | 2 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
7 | class InitPaymentResponse extends PaymentResponse |
||
8 | { |
||
9 | |||
10 | /** @var string|null */ |
||
11 | private $customerCode; |
||
12 | |||
13 | /** |
||
14 | * @param string $payId |
||
15 | * @param DateTimeImmutable $responseDateTime |
||
16 | * @param ResultCode $resultCode |
||
17 | * @param string $resultMessage |
||
18 | * @param PaymentStatus|null $paymentStatus |
||
19 | * @param string|null $authCode |
||
20 | * @param string|null $merchantData |
||
21 | * @param string|null $customerCode |
||
22 | * @param mixed[] $extensions |
||
23 | */ |
||
24 | 1 | public function __construct( |
|
25 | string $payId, |
||
26 | DateTimeImmutable $responseDateTime, |
||
27 | ResultCode $resultCode, |
||
28 | string $resultMessage, |
||
29 | ?PaymentStatus $paymentStatus, |
||
30 | ?string $authCode = null, |
||
31 | ?string $merchantData = null, |
||
32 | ?string $customerCode = null, |
||
33 | array $extensions = [] |
||
34 | ) |
||
35 | { |
||
36 | 1 | parent::__construct($payId, $responseDateTime, $resultCode, $resultMessage, $paymentStatus, $authCode, $merchantData, $extensions); |
|
37 | |||
38 | 1 | $this->customerCode = $customerCode; |
|
39 | 1 | } |
|
40 | |||
41 | public function getCustomerCode(): ?string |
||
44 | } |
||
45 | |||
47 |