Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
3 / 3 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
ValidatorNotFound | |
100.00% |
3 / 3 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
getValidator | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace Verja\Exception; |
4 | |
5 | use Verja\Exception; |
6 | |
7 | class ValidatorNotFound extends Exception |
8 | { |
9 | /** @var string */ |
10 | protected $validator; |
11 | |
12 | /** |
13 | * FilterNotFound constructor. |
14 | * |
15 | * @param string $validator |
16 | */ |
17 | public function __construct(string $validator) |
18 | { |
19 | $this->validator = $validator; |
20 | parent::__construct(sprintf('Validator \'%s\' not found', $validator)); |
21 | } |
22 | |
23 | /** |
24 | * @return string |
25 | */ |
26 | public function getValidator(): string |
27 | { |
28 | return $this->validator; |
29 | } |
30 | } |