1 | <?php |
||
8 | class RoleModel |
||
9 | { |
||
10 | /** |
||
11 | * @param array $currentRoles |
||
12 | * @param RoleInterface $assignRole |
||
13 | * @return array |
||
14 | * @throws RoleIsNotSavedException |
||
15 | */ |
||
16 | 7 | public function assignRole(array $currentRoles, RoleInterface $assignRole): array |
|
28 | |||
29 | /** |
||
30 | * @param array $currentRoles |
||
31 | * @param array $assignRoles |
||
32 | * @return array |
||
33 | * @throws RoleIsNotSavedException |
||
34 | */ |
||
35 | 7 | public function assignRoles(array $currentRoles, array $assignRoles): array |
|
45 | |||
46 | /** |
||
47 | * @param array $currentRoles |
||
48 | * @param RoleInterface $deleteRole |
||
49 | * @return array |
||
50 | * @throws RoleIsNotSavedException |
||
51 | */ |
||
52 | 3 | public function removeRole(array $currentRoles, RoleInterface $deleteRole): array |
|
67 | |||
68 | /** |
||
69 | * @param array $currentRoles |
||
70 | * @param array $deleteRoles |
||
71 | * @return array |
||
72 | * @throws RoleIsNotSavedException |
||
73 | */ |
||
74 | 2 | public function removeRoles(array $currentRoles, array $deleteRoles): array |
|
84 | } |
||
85 |