Skip to content

Commit 0e9fdb5

Browse files
committed
Added constructor for JoinKeyword.
Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
1 parent 0520fbd commit 0e9fdb5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Components/JoinKeyword.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,24 @@ class JoinKeyword extends Component
7373
*/
7474
public $using;
7575

76+
/**
77+
* Constructor.
78+
*
79+
* @param string $type Join type
80+
* @param Expression $expr Join expression.
81+
* @param Condition[] $on Join conditions.
82+
* @param ArrayObj $using Columns joined.
83+
*
84+
* @see JoinKeyword::$JOINS
85+
*/
86+
public function __construct($type = null, $expr = null, $on = null, $using = null)
87+
{
88+
$this->type = $type;
89+
$this->expr = $expr;
90+
$this->on = $on;
91+
$this->using = $using;
92+
}
93+
7694
/**
7795
* @param Parser $parser the parser that serves as context
7896
* @param TokensList $list the list of tokens that are being parsed

0 commit comments

Comments
 (0)