1 | <?php |
||
13 | class DetachPermissionsFromRoleTask extends Task |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var \App\Containers\Authorization\Actions\GetRoleAction |
||
18 | */ |
||
19 | private $getRoleAction; |
||
20 | |||
21 | |||
22 | /** |
||
23 | * AttachPermissionsToRoleTask constructor. |
||
24 | * |
||
25 | * @param \App\Containers\Authorization\Actions\GetRoleAction $getRoleAction |
||
26 | */ |
||
27 | public function __construct(GetRoleAction $getRoleAction) |
||
31 | |||
32 | /** |
||
33 | * @param string $roleName |
||
34 | * @param array|string $permissionNames |
||
35 | * |
||
36 | * @return mixed |
||
37 | */ |
||
38 | public function run($roleName, $permissionNames) |
||
46 | } |
||
47 |