| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 66.67% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 5 | final class AccountInfoResult implements DtoInterface |
||
| 6 | { |
||
| 7 | public AccountInfo $accountInfo; |
||
| 8 | |||
| 9 | 1 | public function __construct(AccountInfo $accountInfo) |
|
| 12 | } |
||
| 13 | |||
| 14 | 1 | public static function fromArray(array $data): self |
|
| 15 | { |
||
| 16 | 1 | return new self( |
|
| 17 | 1 | isset($data['account_info']) ? AccountInfo::fromArray($data['account_info']) : new AccountInfo() |
|
| 18 | 1 | ); |
|
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return array<string, mixed> |
||
| 23 | */ |
||
| 24 | public function jsonSerialize(): array |
||
| 28 | ]; |
||
| 29 | } |
||
| 31 |