| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 19 | class UserModelMapper |
||
| 20 | { |
||
| 21 | public function getReadModelFromArray(array $data): UserReadModel |
||
| 22 | { |
||
| 23 | return new UserReadModel( |
||
| 24 | $data['uuid'], |
||
| 25 | $data['username'], |
||
| 26 | $data['email'], |
||
| 27 | \explode(',', $data['roles']), |
||
| 28 | null, |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getDataFromUser(User $user): array |
||
| 40 | ]; |
||
| 41 | } |
||
| 43 |