Completed
Push — master ( f4ef0a...d00cab )
by Marco
16s
created

BetweenExpression::dispatch()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\ORM\Query\AST;
6
7
class BetweenExpression extends Node
8
{
9
    /**
10
     * @var ArithmeticExpression
11
     */
12
    public $expression;
13
14
    /**
15
     * @var ArithmeticExpression
16
     */
17
    public $leftBetweenExpression;
18
19
    /**
20
     * @var ArithmeticExpression
21
     */
22
    public $rightBetweenExpression;
23
24
    /**
25
     * @var bool
26
     */
27
    public $not;
28
29
    /**
30
     * @param ArithmeticExpression $expr
31
     * @param ArithmeticExpression $leftExpr
32
     * @param ArithmeticExpression $rightExpr
33
     */
34 8
    public function __construct($expr, $leftExpr, $rightExpr)
35
    {
36 8
        $this->expression             = $expr;
37 8
        $this->leftBetweenExpression  = $leftExpr;
38 8
        $this->rightBetweenExpression = $rightExpr;
39 8
    }
40
41
    /**
42
     * {@inheritdoc}
43
     */
44 6
    public function dispatch($sqlWalker)
45
    {
46 6
        return $sqlWalker->walkBetweenExpression($this);
47
    }
48
}
49