forked from fa/breadcrumb-the-shire
assign role roles
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace MintyPHP\Repository\Access;
|
||||
|
||||
interface RoleAssignableRoleRepositoryInterface
|
||||
{
|
||||
/** @return int[] */
|
||||
public function listAssignableRoleIdsByRoleId(int $roleId): array;
|
||||
|
||||
/**
|
||||
* Union of assignable role IDs across multiple roles (e.g. all roles of an actor).
|
||||
* @param int[] $roleIds
|
||||
* @return int[]
|
||||
*/
|
||||
public function listAssignableRoleIdsByRoleIds(array $roleIds): array;
|
||||
|
||||
/**
|
||||
* Atomic replace: delete all + re-insert.
|
||||
* @param int[] $assignableRoleIds
|
||||
*/
|
||||
public function replaceForRole(int $roleId, array $assignableRoleIds): bool;
|
||||
}
|
||||
Reference in New Issue
Block a user