1 | <?php |
||
13 | class DetachPermissionsFromRoleAction extends Action |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var \App\Containers\Authorization\Tasks\DetachPermissionsFromRoleTask |
||
18 | */ |
||
19 | private $detachPermissionsFromRoleTask; |
||
20 | |||
21 | /** |
||
22 | * DetachPermissionsFromRoleAction constructor. |
||
23 | * |
||
24 | * @param \App\Containers\Authorization\Tasks\DetachPermissionsFromRoleTask $detachPermissionsFromRoleTask |
||
25 | */ |
||
26 | public function __construct(DetachPermissionsFromRoleTask $detachPermissionsFromRoleTask) |
||
30 | |||
31 | /** |
||
32 | * @param string $role |
||
33 | * @param array|string $permissions |
||
34 | * |
||
35 | * @return mixed |
||
36 | */ |
||
37 | public function run($role, $permissions) |
||
41 | } |
||
42 |