| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | class RequestMapper extends RestRequestMapper |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var array<int, string> |
||
| 27 | */ |
||
| 28 | protected static array $properties = [ |
||
| 29 | 'username', |
||
| 30 | 'firstName', |
||
| 31 | 'lastName', |
||
| 32 | 'email', |
||
| 33 | 'language', |
||
| 34 | 'locale', |
||
| 35 | 'timezone', |
||
| 36 | 'userGroups', |
||
| 37 | 'password', |
||
| 38 | ]; |
||
| 39 | |||
| 40 | 51 | public function __construct( |
|
| 41 | private UserGroupResource $userGroupResource, |
||
| 42 | ) { |
||
| 43 | 51 | } |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @param array<int, string> $userGroups |
||
| 47 | * |
||
| 48 | * @return array<int, UserGroup> |
||
| 49 | * |
||
| 50 | * @throws Throwable |
||
| 51 | */ |
||
| 52 | 4 | protected function transformUserGroups(array $userGroups): array |
|
| 57 | ); |
||
| 58 | } |
||
| 60 |