summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Ungureanu <udan1107@gmail.com>2017-05-12 19:14:53 +0300
committerDan Ungureanu <udan11@users.noreply.github.com>2017-05-16 21:58:07 +0300
commit0e9fdb5257fb0a19b42235d4f8d170374949912e (patch)
tree4ae3e036f644bd965f8f84657512e22de755cfad /src
parent0520fbdbb632987ce61a8ee205381ab7e46a8205 (diff)
downloadsql-parser-0e9fdb5257fb0a19b42235d4f8d170374949912e.zip
sql-parser-0e9fdb5257fb0a19b42235d4f8d170374949912e.tar.gz
sql-parser-0e9fdb5257fb0a19b42235d4f8d170374949912e.tar.bz2
Added constructor for JoinKeyword.
Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/Components/JoinKeyword.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Components/JoinKeyword.php b/src/Components/JoinKeyword.php
index fdf0e5e..cf6d4aa 100644
--- a/src/Components/JoinKeyword.php
+++ b/src/Components/JoinKeyword.php
@@ -74,6 +74,24 @@ class JoinKeyword extends Component
public $using;
/**
+ * Constructor.
+ *
+ * @param string $type Join type
+ * @param Expression $expr Join expression.
+ * @param Condition[] $on Join conditions.
+ * @param ArrayObj $using Columns joined.
+ *
+ * @see JoinKeyword::$JOINS
+ */
+ public function __construct($type = null, $expr = null, $on = null, $using = null)
+ {
+ $this->type = $type;
+ $this->expr = $expr;
+ $this->on = $on;
+ $this->using = $using;
+ }
+
+ /**
* @param Parser $parser the parser that serves as context
* @param TokensList $list the list of tokens that are being parsed
* @param array $options parameters for parsing