| Conditions | 3 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 14 | 1 | public function createResponse(array $data): TransactionSettlementResponse |
|
| 15 | { |
||
| 16 | 1 | return new TransactionSettlementResponse( |
|
| 17 | 1 | new DateTimeImmutable($data['createdDate']), |
|
| 18 | 1 | isset($data['authDate']) ? $this->parseAuthDate($data['authDate']) : null, |
|
| 19 | 1 | isset($data['settlementDate']) ? $this->parseSettlementDate($data['settlementDate']) : null |
|
| 20 | ); |
||
| 21 | } |
||
| 22 | |||
| 39 |