Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function __construct(ValidatorInterface $validator, $rules) |
||
13 | { |
||
14 | $this->name = get_class($validator); |
||
15 | $this->rules = $rules; |
||
16 | |||
17 | $message = sprintf( |
||
18 | 'Validator [%s] has no supplied %s rules.', |
||
19 | $this->name, |
||
20 | $this->rules |
||
21 | ); |
||
22 | parent::__construct($message); |
||
23 | } |
||
24 | } |
||
25 |