| Conditions | 3 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types = 1); |
||
| 19 | 1 | public function createResponse(array $data): TransactionSettlementResponse |
|
| 20 | { |
||
| 21 | 1 | return new TransactionSettlementResponse( |
|
| 22 | 1 | new DateTimeImmutable($data['createdDate']), |
|
| 23 | 1 | isset($data['authDate']) ? $this->parseAuthDate($data['authDate']) : null, |
|
| 24 | 1 | isset($data['settlementDate']) ? $this->parseSettlementDate($data['settlementDate']) : null |
|
| 25 | ); |
||
| 44 |