Failed Conditions
Push — master ( ddb3cd...4476ec )
by Marco
11:47
created

JoinClassPathExpression::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
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
/**
8
 * JoinClassPathExpression ::= AbstractSchemaName ["AS"] AliasIdentificationVariable
9
 */
10
class JoinClassPathExpression extends Node
11
{
12
    /**
13
     * @var mixed
14
     */
15
    public $abstractSchemaName;
16
17
    /**
18
     * @var mixed
19
     */
20
    public $aliasIdentificationVariable;
21
22
    /**
23
     * @param mixed $abstractSchemaName
24
     * @param mixed $aliasIdentificationVar
25
     */
26
    public function __construct($abstractSchemaName, $aliasIdentificationVar)
27
    {
28
        $this->abstractSchemaName          = $abstractSchemaName;
29
        $this->aliasIdentificationVariable = $aliasIdentificationVar;
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function dispatch($walker)
36
    {
37
        return $walker->walkJoinPathExpression($this);
38
    }
39
}
40