SimpleAcl\Acl::isRuleAllow PHP Method

isRuleAllow() protected method

Returns null if rule don't match any role or resource.
protected isRuleAllow ( string $roleName, string $resourceName, $ruleName, SimpleAcl\RuleResultCollection $ruleResultCollection, string | SimpleAcl\Role\RoleAggregateInterface $roleAggregate, string | SimpleAcl\Resource\ResourceAggregateInterface $resourceAggregate )
$roleName string
$resourceName string
$ruleName
$ruleResultCollection SimpleAcl\RuleResultCollection
$roleAggregate string | SimpleAcl\Role\RoleAggregateInterface
$resourceAggregate string | SimpleAcl\Resource\ResourceAggregateInterface
    protected function isRuleAllow($roleName, $resourceName, $ruleName, RuleResultCollection $ruleResultCollection, $roleAggregate, $resourceAggregate)
    {
        foreach ($this->rules as $rule) {
            $rule->resetAggregate($roleAggregate, $resourceAggregate);
            $result = $rule->isAllowed($ruleName, $roleName, $resourceName);
            $ruleResultCollection->add($result);
        }
    }