Total Complexity | 5 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 90% |
Changes | 0 |
1 | <?php |
||
15 | class RangeValidator extends ValidatorHasNotNull { |
||
16 | protected $min; |
||
17 | protected $max; |
||
18 | |||
19 | 1 | public function __construct() { |
|
20 | 1 | $this->message = "This value should be between `{min}` and `{max}`"; |
|
21 | 1 | } |
|
22 | |||
23 | 1 | public function validate($value) { |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * |
||
33 | * {@inheritdoc} |
||
34 | * @see \Ubiquity\contents\validation\validators\Validator::getParameters() |
||
35 | */ |
||
36 | 1 | public function getParameters(): array { |
|
41 |