Total Complexity | 3 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
7 | class IsEmptyValidator extends Validator { |
||
8 | |||
9 | public function __construct(){ |
||
10 | $this->message="This value should be empty"; |
||
11 | } |
||
12 | public function validate($value) { |
||
13 | return $value==null; |
||
14 | } |
||
15 | |||
16 | /** |
||
17 | * {@inheritDoc} |
||
18 | * @see \Ubiquity\contents\validation\validators\Validator::getParameters() |
||
19 | */ |
||
20 | public function getParameters(): array { |
||
22 | } |
||
23 | } |
||
24 | |||
25 |