CanFeature
in package
implements
PolicyRuleInterface
Table of Contents
Interfaces
- PolicyRuleInterface
- Interface PolicyCheckInterface Check by function or policy handler.
Methods
- check() : bool|null
- This method invoked by PolicyGate::check.
Methods
check()
This method invoked by PolicyGate::check.
public
check(string $entityType, User $user, mixed $resource[, mixed $newValue = null ]) : bool|null
Parameters
- $entityType : string
- $user : User
- $resource : mixed
- $newValue : mixed = null