Passed
Branch master (e30549)
by noitran
04:00
created

LikeExpr::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
crap 1
1
<?php
2
3
namespace Noitran\RQL\Expressions;
4
5
/**
6
 * Class LikeExpr
7
 */
8
class LikeExpr extends AbstractExpr
9
{
10
    /**
11
     * LikeExpr constructor.
12
     *
13
     * @param string|null $relation
14
     * @param string $column
15
     * @param mixed $value
16
     */
17 1
    public function __construct(?string $relation, string $column, $value)
18
    {
19 1
        parent::__construct($relation, $column, $value);
20
21 1
        $this->setExpression('$like');
22 1
        $this->setOperator('like');
23 1
    }
24
}
25