0 follower

Interface Yiisoft\Rbac\RuleFactoryInterface

Implemented byYiisoft\Rbac\SimpleRuleFactory

Having a rule name creates an instance of it.

Public Methods

Hide inherited methods

Method Description Defined By
create() Yiisoft\Rbac\RuleFactoryInterface

Method Details

Hide inherited methods

create() public abstract method

public abstract Yiisoft\Rbac\RuleInterface create ( string $name )
$name string

Rule name.

return Yiisoft\Rbac\RuleInterface

Rule created.

throws Yiisoft\Rbac\Exception\RuleNotFoundException
throws Yiisoft\Rbac\Exception\RuleInterfaceNotImplementedException

                public function create(string $name): RuleInterface;