Right implements Errorable uses ErrorableImplementation
Table of Contents
Interfaces
- Errorable
Constants
- ACCESS_DENIED = 'ACCESS_DENIED'
Methods
- __construct() : mixed
- checkPermission() : bool
- Checks access to the entity.
- getPermission() : int|string
Constants
ACCESS_DENIED
public
mixed
ACCESS_DENIED
= 'ACCESS_DENIED'
Methods
__construct()
public
__construct(RightParam $rightParam, RightEntity $entityRight) : mixed
Parameters
- $rightParam : RightParam
- $entityRight : RightEntity
checkPermission()
Checks access to the entity.
public
checkPermission([string $entityMethod = '' ]) : bool
Parameters
- $entityMethod : string = ''
-
Entity method to check access.
Return values
boolgetPermission()
public
getPermission() : int|string