Interface Yiisoft\Rbac\RuleFactoryInterface
| Implemented by | Yiisoft\Rbac\SimpleRuleFactory |
|---|
Having a rule name creates an instance of it.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| create() | Yiisoft\Rbac\RuleFactoryInterface |
Method Details
| 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;
Signup or Login in order to comment.