Skip to content

Commit

Permalink
Add exceptions to phpdoc (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
rustamwin committed Jul 8, 2022
1 parent 0363dc4 commit b69f59b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/RuleHandlerResolverInterface.php
Expand Up @@ -4,6 +4,8 @@

namespace Yiisoft\Validator;

use Yiisoft\Validator\Exception\RuleHandlerInterfaceNotImplementedException;
use Yiisoft\Validator\Exception\RuleHandlerNotFoundException;
use Yiisoft\Validator\Rule\RuleHandlerInterface;

/**
Expand All @@ -15,6 +17,9 @@ interface RuleHandlerResolverInterface
* Obtain a resolver for a given rule class name.
*
* @param string $className Rule class name.
*
* @throws RuleHandlerNotFoundException
* @throws RuleHandlerInterfaceNotImplementedException
*/
public function resolve(string $className): RuleHandlerInterface;
}

0 comments on commit b69f59b

Please sign in to comment.