| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 11 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 9 | 
| CRAP Score | 1 | 
| Changes | 2 | ||
| Bugs | 0 | Features | 2 | 
| 1 | <?php | ||
| 24 | 8 | public static function fromArray(array $data): self | |
| 25 |     { | ||
| 26 | 8 | $dto = new self(); | |
| 27 | 8 | $dto->currency = $data['currency'] ?? ''; | |
| 28 | 8 | $dto->unit = $data['unit'] ?? ''; | |
| 29 | 8 | $dto->registration = $data['registration'] ?? ''; | |
| 30 | 8 | $dto->renewal = $data['renewal'] ?? ''; | |
| 31 | 8 | $dto->transfer = $data['transfer'] ?? ''; | |
| 32 | 8 | $dto->restore = $data['restore'] ?? ''; | |
| 33 | |||
| 34 | 8 | return $dto; | |
| 35 | } | ||
| 52 |