Total Complexity | 3 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | class LessThanValidator extends ValidatorHasNotNull { |
||
8 | |||
9 | protected $ref; |
||
10 | 1 | public function __construct(){ |
|
11 | 1 | $this->message="This value should be smaller than `{ref}`"; |
|
12 | 1 | } |
|
13 | 1 | public function validate($value) { |
|
16 | } |
||
17 | /** |
||
18 | * {@inheritDoc} |
||
19 | * @see \Ubiquity\contents\validation\validators\Validator::getParameters() |
||
20 | */ |
||
21 | 1 | public function getParameters(): array { |
|
23 | } |
||
24 | |||
27 |