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

Predicate   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 4
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 4
b 0
f 0
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A not() 0 2 1
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
}