1 | <?php |
||
8 | class PermissionModel |
||
9 | { |
||
10 | /** |
||
11 | * @param array $currentPermissions |
||
12 | * @param PermissionInterface $assignPermission |
||
13 | * @return array |
||
14 | * @throws PermissionIsNotSavedException |
||
15 | */ |
||
16 | 15 | public function assignPermission(array $currentPermissions, PermissionInterface $assignPermission): array |
|
28 | |||
29 | /** |
||
30 | * @param array $currentPermissions |
||
31 | * @param array $assignPermissions |
||
32 | * @return array |
||
33 | * @throws PermissionIsNotSavedException |
||
34 | */ |
||
35 | 14 | public function assignPermissions(array $currentPermissions, array $assignPermissions): array |
|
45 | |||
46 | /** |
||
47 | * @param array $currentPermissions |
||
48 | * @param PermissionInterface $deletePermission |
||
49 | * @return array |
||
50 | * @throws PermissionIsNotSavedException |
||
51 | */ |
||
52 | 6 | public function removePermission(array $currentPermissions, PermissionInterface $deletePermission): array |
|
67 | |||
68 | /** |
||
69 | * @param array $currentPermissions |
||
70 | * @param array $deletePermissions |
||
71 | * @return array |
||
72 | * @throws PermissionIsNotSavedException |
||
73 | */ |
||
74 | 4 | public function removePermissions(array $currentPermissions, array $deletePermissions): array |
|
84 | } |
||
85 |