LteExpr::__construct()   A
last analyzed

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