summaryrefslogtreecommitdiffstats
path: root/src/Components
diff options
context:
space:
mode:
Diffstat (limited to 'src/Components')
-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