Role
- Full name:
\Codefy\Framework\Auth\Rbac\Entity\Role
Methods
addChild
Parameters:
| Parameter | Type | Description |
|---|---|---|
$role | \Codefy\Framework\Auth\Rbac\Entity\Role |
removeChild
Parameters:
| Parameter | Type | Description |
|---|---|---|
$roleName | string |
getChildren
addPermission
Parameters:
| Parameter | Type | Description |
|---|---|---|
$permission | \Codefy\Framework\Auth\Rbac\Entity\Permission |
removePermission
Parameters:
| Parameter | Type | Description |
|---|---|---|
$permissionName | string |
getPermissions
Parameters:
| Parameter | Type | Description |
|---|---|---|
$withChildren | bool |
checkAccess
Parameters:
| Parameter | Type | Description |
|---|---|---|
$permissionName | string | |
$params | array|null |
Throws: