Interface Yiisoft\Validator\RuleHandlerResolverInterface
| Implemented by | Yiisoft\ |
|---|
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\ |
Method Details
Resolves a rule handler name to a corresponding rule handler instance.
| public abstract Yiisoft\ | ||
| $name | string |
A rule handler name ({@see \ |
| return | Yiisoft\ |
A corresponding rule handler instance. |
|---|---|---|
| throws | Yiisoft\ |
If a rule handler instance was not found. |
| throws | Yiisoft\ |
If a found instance is not a valid rule handler. |
public function resolve(string $name): RuleHandlerInterface;
User Contributed Notes
Leave a comment
Join the conversation to share a note.