| Total Complexity | 3 | 
| Total Lines | 27 | 
| Duplicated Lines | 0 % | 
| Coverage | 66.67% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 5 | final class BalanceListItem implements DtoInterface | ||
| 6 | { | ||
| 7 | public string $currency; | ||
| 8 | public string $amount; | ||
| 9 | |||
| 10 | 1 | public function __construct(string $currency = '', string $amount = '') | |
| 14 | } | ||
| 15 | |||
| 16 | 1 | public static function fromArray(array $data): self | |
| 17 |     { | ||
| 18 | 1 | return new self( | |
| 19 | 1 | $data['currency'] ?? '', | |
| 20 | 1 | $data['amount'] ?? '' | |
| 21 | 1 | ); | |
| 22 | } | ||
| 23 | |||
| 24 | /** | ||
| 25 | * @return array<string, string> | ||
| 26 | */ | ||
| 27 | public function jsonSerialize(): array | ||
| 32 | ]; | ||
| 33 | } | ||
| 35 |