Passed
Pull Request — master (#16)
by Anton
03:08
created

Functions.php ➔ like_()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @package Cadmium\Framework
5
 * @author Anton Romanov
6
 * @copyright Copyright (c) 2015-2017, Anton Romanov
7
 * @link http://cadmium-cms.com
8
 */
9
10
# Short type creators
11
12
function not_(string $value) {
13
14
	return new Type\Not($value);
15
}
16
17
function like_(string $value) {
18
19
	return new Type\Like($value);
20
}
21
22
function lt_(int $value) {
23
24
	return new Type\LessThan($value);
25
}
26
27
function gt_(int $value) {
28
29
	return new Type\GreaterThan($value);
30
}
31
32
function le_(int $value) {
33
34
	return new Type\LessThanOrEqual($value);
35
}
36
37
function ge_(int $value) {
38
39
	return new Type\GreaterThanOrEqual($value);
40
}
41