| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 23 | 1 | public function __construct( |
|
| 24 | DateTimeImmutable $responseDateTime, |
||
| 25 | ResultCode $resultCode, |
||
| 26 | string $resultMessage, |
||
| 27 | ?string $customerId = null |
||
| 28 | ) |
||
| 29 | { |
||
| 30 | 1 | if ($customerId !== null) { |
|
| 31 | 1 | Validator::checkCustomerId($customerId); |
|
| 32 | } |
||
| 33 | |||
| 34 | 1 | $this->responseDateTime = $responseDateTime; |
|
| 35 | 1 | $this->resultCode = $resultCode; |
|
| 36 | 1 | $this->resultMessage = $resultMessage; |
|
| 37 | 1 | $this->customerId = $customerId; |
|
| 38 | 1 | } |
|
| 61 |