BaseStorageResource
- Full name:
\Codefy\Framework\Auth\Rbac\Resource\BaseStorageResource
- This class implements:
\Codefy\Framework\Auth\Rbac\Resource\StorageResource
- This class is an Abstract class
Properties
roles
permissions
Methods
addRole
public addRole(string $name, string $description = ''): \Codefy\Framework\Auth\Rbac\Entity\Role
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$description | string |
Throws:
addPermission
public addPermission(string $name, string $description = ''): \Codefy\Framework\Auth\Rbac\Entity\Permission
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$description | string |
getRole
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
deleteRole
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
getPermission
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
deletePermission
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
clear
Automatically generated on 2025-10-13