Completed
Push — master ( f8bd36...f2dc96 )
by Jean-Christophe
01:33
created

NotNullValidator::validate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
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
17