Ubiquity
2.5.2
php rapid development framework
Loading...
Searching...
No Matches
IsNullValidator.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
IsNullValidator
extends
Validator
{
8
9
public
function
__construct
(){
10
$this->message=
"This value should be null"
;
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\IsNullValidator
Definition
IsNullValidator.php:7
Ubiquity\contents\validation\validators\basic\IsNullValidator\getParameters
getParameters()
{}\Ubiquity\contents\validation\validators\ValidatorInterfacegetParameters()
Definition
IsNullValidator.php:20
Ubiquity\contents\validation\validators\basic\IsNullValidator\__construct
__construct()
Definition
IsNullValidator.php:9
Ubiquity\contents\validation\validators\basic\IsNullValidator\validate
validate($value)
Definition
IsNullValidator.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
IsNullValidator.php
Generated on Sun Dec 10 2023 15:04:14 for
Ubiquity
by
doxygen
1.9.8