PHP Class Efficiently\AuthorityController\Rule

Inheritance: extends Authority\Rule
Show file Open project: efficiently/authority-controller

Public Methods

Method Description
isConditionsEmpty ( ) : boolean
isRelevant ( string | array $action, string | mixed $resource ) : boolean Determine if current rule is relevant based on an action and resource
matchesAction ( string | array $action ) : boolean Determine if the instance's action matches the one passed in
onlyCondition ( ) : boolean

Method Details

isConditionsEmpty() public method

public isConditionsEmpty ( ) : boolean
return boolean

isRelevant() public method

Determine if current rule is relevant based on an action and resource
public isRelevant ( string | array $action, string | mixed $resource ) : boolean
$action string | array Action in question
$resource string | mixed Name of resource or instance of object
return boolean

matchesAction() public method

Determine if the instance's action matches the one passed in
public matchesAction ( string | array $action ) : boolean
$action string | array Action in question
return boolean

onlyCondition() public method

public onlyCondition ( ) : boolean
return boolean