1 | <?php declare(strict_types=1); |
||
5 | abstract class AbstractValidator implements ValidatorInterface |
||
6 | { |
||
7 | protected $skipOnEmpty = true; |
||
8 | |||
9 | protected $message = 'Validation failed'; |
||
10 | |||
11 | 7 | public function __construct(array $params = []) |
|
20 | |||
21 | public function setSkipOnEmpty($value) : self |
||
26 | |||
27 | 4 | public function setMessage($message) : self |
|
32 | |||
33 | 3 | public function getMessage() : string |
|
37 | |||
38 | public abstract function validate($value, array $context = []) : bool; |
||
39 | } |
||
40 |