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