Passed
Push — master ( 66d9a1...cecd70 )
by noitran
03:34
created

AndExpr   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 16
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace Noitran\Repositories\RQL\Expressions;
4
5
/**
6
 * Class AndExpr
7
 */
8
class AndExpr extends AbstractExpr
9
{
10
    /**
11
     * AndExpr constructor.
12
     *
13
     * @param string|null $relation
14
     * @param string $column
15
     * @param mixed $value
16
     */
17
    public function __construct(?string $relation, string $column, $value)
18
    {
19
        parent::__construct($relation, $column, $value);
20
21
22
        $this->setExpression('$and');
23
        $this->setOperator();
24
    }
25
}
26