Passed
Push — master ( 222f48...0fa176 )
by y
01:47
created

Predicate   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A not() 0 2 1
1
<?php
2
3
namespace Helix\DB\Fluent;
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 static
14
     */
15
    public function not () {
16
        return static::factory($this->db, "NOT({$this})");
17
    }
18
19
}
20