Interface Yiisoft\Validator\RuleHandlerResolverInterface
| Implemented by | Yiisoft\Validator\RuleHandlerResolver\RuleHandlerContainer, Yiisoft\Validator\RuleHandlerResolver\SimpleRuleHandlerContainer |
|---|
An interface allowing to resolve a rule handler name to a corresponding rule handler instance.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| resolve() | Resolves a rule handler name to a corresponding rule handler instance. | Yiisoft\Validator\RuleHandlerResolverInterface |
Method Details
Resolves a rule handler name to a corresponding rule handler instance.
| public abstract Yiisoft\Validator\RuleHandlerInterface resolve ( string $name ) | ||
| $name | string |
A rule handler name ({@see \Yiisoft\Validator\RuleInterface}). |
| return | Yiisoft\Validator\RuleHandlerInterface |
A corresponding rule handler instance. |
|---|---|---|
| throws | Yiisoft\Validator\Exception\RuleHandlerNotFoundException |
If a rule handler instance was not found. |
| throws | Yiisoft\Validator\Exception\RuleHandlerInterfaceNotImplementedException |
If a found instance is not a valid rule handler. |
public function resolve(string $name): RuleHandlerInterface;
Signup or Login in order to comment.