yii\rbac\BaseManager::addRule PHP Method

addRule() abstract protected method

Adds a rule to the RBAC system.
abstract protected addRule ( Rule $rule ) : boolean
$rule Rule the rule to add
return boolean whether the rule is successfully added to the system
    protected abstract function addRule($rule);