yii\rbac\Rule::execute PHP Method

execute() abstract public method

Executes the rule.
abstract public execute ( string | integer $user, Item $item, array $params ) : boolean
$user string | integer the user ID. This should be either an integer or a string representing the unique identifier of a user. See [[\yii\web\User::id]].
$item Item the role or permission that this rule is associated with
$params array parameters passed to [[CheckAccessInterface::checkAccess()]].
return boolean a value indicating whether the rule permits the auth item it is associated with.
    public abstract function execute($user, $item, $params);