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