Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
23 | class RequestMapper extends RestRequestMapper |
||
24 | { |
||
25 | /** |
||
26 | * Properties to map to destination object. |
||
27 | * |
||
28 | * @var array<int, non-empty-string> |
||
|
|||
29 | */ |
||
30 | protected static array $properties = [ |
||
31 | 'description', |
||
32 | 'userGroups', |
||
33 | ]; |
||
34 | |||
35 | 88 | public function __construct( |
|
36 | private readonly UserGroupResource $userGroupResource, |
||
37 | ) { |
||
38 | 88 | } |
|
39 | |||
40 | /** |
||
41 | * @param array<int, string> $userGroups |
||
42 | * |
||
43 | * @return array<int, UserGroup> |
||
44 | * |
||
45 | * @throws Throwable |
||
46 | */ |
||
47 | 4 | protected function transformUserGroups(array $userGroups): array |
|
52 | 4 | ); |
|
53 | } |
||
55 |