Ubiquity
2.5.2
php rapid development framework
Loading...
Searching...
No Matches
IsEmptyValidator.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ubiquity\contents\validation\validators\basic
;
4
5
use
Ubiquity\contents\validation\validators\Validator
;
6
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
20
public
function
getParameters
(): array {
21
return [
"value"
];
22
}
23
}
24
Ubiquity\contents\validation\validators\Validator
Abstract class for validators.
Definition
Validator.php:11
Ubiquity\contents\validation\validators\Validator\$value
$value
Definition
Validator.php:15
Ubiquity\contents\validation\validators\basic\IsEmptyValidator
Definition
IsEmptyValidator.php:7
Ubiquity\contents\validation\validators\basic\IsEmptyValidator\getParameters
getParameters()
{}\Ubiquity\contents\validation\validators\ValidatorInterfacegetParameters()
Definition
IsEmptyValidator.php:20
Ubiquity\contents\validation\validators\basic\IsEmptyValidator\__construct
__construct()
Definition
IsEmptyValidator.php:9
Ubiquity\contents\validation\validators\basic\IsEmptyValidator\validate
validate($value)
Definition
IsEmptyValidator.php:12
Ubiquity\contents\validation\validators\basic
Basic validators.
Definition
IsBooleanValidator.php:6
C:
Users
myadd
Documents
GitHub
ubiquity-doc-api
vendor
phpmv
ubiquity
src
Ubiquity
contents
validation
validators
basic
IsEmptyValidator.php
Generated on Sun Dec 10 2023 15:04:14 for
Ubiquity
by
doxygen
1.9.8