JoinMetadata::setNaturalJoin()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
/**
4
 * This file is part of UnderQuery package.
5
 *
6
 * Copyright (c) 2016 Beniamin Jonatan Šimko
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Phuria\UnderQuery\Table;
13
14
/**
15
 * @author Beniamin Jonatan Šimko <[email protected]>
16
 */
17
class JoinMetadata
18
{
19
    /**
20
     * @var string
21
     */
22
    private $joinType;
23
24
    /**
25
     * @var string
26
     */
27
    private $joinOn;
28
29
    /**
30
     * @var bool
31
     */
32
    private $naturalJoin = false;
33
34
    /**
35
     * @var bool
36
     */
37
    private $outerJoin = false;
38
39
    /**
40
     * @return string
41
     */
42 1
    public function getJoinType()
43
    {
44 1
        return $this->joinType;
45
    }
46
47
    /**
48
     * @param string $joinType
49
     *
50
     * @return JoinMetadata
51
     */
52 1
    public function setJoinType($joinType)
53
    {
54 1
        $this->joinType = $joinType;
55
56 1
        return $this;
57
    }
58
59
    /**
60
     * @return string
61
     */
62 1
    public function getJoinOn()
63
    {
64 1
        return $this->joinOn;
65
    }
66
67
    /**
68
     * @param string $joinOn
69
     *
70
     * @return JoinMetadata
71
     */
72 1
    public function setJoinOn($joinOn)
73
    {
74 1
        $this->joinOn = $joinOn;
75
76 1
        return $this;
77
    }
78
79
    /**
80
     * @return boolean
81
     */
82 1
    public function isNaturalJoin()
83
    {
84 1
        return $this->naturalJoin;
85
    }
86
87
    /**
88
     * @param boolean $naturalJoin
89
     *
90
     * @return JoinMetadata
91
     */
92 1
    public function setNaturalJoin($naturalJoin)
93
    {
94 1
        $this->naturalJoin = $naturalJoin;
95
96 1
        return $this;
97
    }
98
99
    /**
100
     * @return boolean
101
     */
102 1
    public function isOuterJoin()
103
    {
104 1
        return $this->outerJoin;
105
    }
106
107
    /**
108
     * @param boolean $outerJoin
109
     *
110
     * @return JoinMetadata
111
     */
112 1
    public function setOuterJoin($outerJoin)
113
    {
114 1
        $this->outerJoin = $outerJoin;
115
116 1
        return $this;
117
    }
118
}