| Total Complexity | 4 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class RangeValidator extends ValidatorHasNotNull { |
||
| 12 | |||
| 13 | protected $min; |
||
| 14 | protected $max; |
||
| 15 | |||
| 16 | 1 | public function __construct(){ |
|
| 17 | 1 | $this->message="This value should be between `{min}` and `{max}`"; |
|
| 18 | 1 | } |
|
| 19 | |||
| 20 | 1 | public function validate($value) { |
|
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritDoc} |
||
| 27 | * @see \Ubiquity\contents\validation\validators\Validator::getParameters() |
||
| 28 | */ |
||
| 29 | 1 | public function getParameters(): array { |
|
| 35 |