Failed Conditions
Pull Request — 2.6 (#7180)
by Ben
11:16
created

JoinClassPathExpression   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 28
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A dispatch() 0 3 1
A __construct() 0 4 1
1
<?php
2
/*
3
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
5
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
6
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
7
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
8
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
9
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
10
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
11
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
12
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
13
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14
 *
15
 * This software consists of voluntary contributions made by many individuals
16
 * and is licensed under the MIT license. For more information, see
17
 * <http://www.doctrine-project.org>.
18
 */
19
20
namespace Doctrine\ORM\Query\AST;
21
22
/**
23
 * JoinClassPathExpression ::= AbstractSchemaName ["AS"] AliasIdentificationVariable
24
 *
25
 * @license http://www.opensource.org/licenses/mit-license.php MIT
26
 * @link    www.doctrine-project.org
27
 * @since   2.3
28
 * @author  Alexander <[email protected]>
29
 */
30
class JoinClassPathExpression extends Node
31
{
32
    /**
33
     * @var mixed
34
     */
35
    public $abstractSchemaName;
36
37
    /**
38
     * @var mixed
39
     */
40
    public $aliasIdentificationVariable;
41
42
    /**
43
     * @param mixed $abstractSchemaName
44
     * @param mixed $aliasIdentificationVar
45
     */
46
    public function __construct($abstractSchemaName, $aliasIdentificationVar)
47
    {
48
        $this->abstractSchemaName = $abstractSchemaName;
49
        $this->aliasIdentificationVariable = $aliasIdentificationVar;
50
    }
51
52
    /**
53
     * {@inheritdoc}
54
     */
55
    public function dispatch($walker)
56
    {
57
        return $walker->walkJoinPathExpression($this);
58
    }
59
}
60