Passed
Push — master ( bd418e...873950 )
by y
01:50
created

Predicate::not()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 2
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Helix\DB\SQL;
4
5
/**
6
 * Represents a logical expression that will evaluate as boolean.
7
 */
8
class Predicate extends Expression implements ValueInterface {
9
10
    /**
11
     * `NOT($this)`
12
     *
13
     * @return Predicate
14
     */
15
    public function not () {
16
        return new static("NOT({$this})");
17
    }
18
19
}