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