Skip to content

Commit 0520fbd

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

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/Components/IntoKeyword.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,32 @@ class IntoKeyword extends Component
9595
*/
9696
public $lines_options;
9797

98+
/**
99+
* Constructor.
100+
*
101+
* @param string $type Type of destination (may be OUTFILE).
102+
* @param string|Expression $dest Actual destination.
103+
* @param array $columns Column list of destination.
104+
* @param array $values Selected fields.
105+
* @param OptionsArray $fields_options Options for FIELDS/COLUMNS keyword.
106+
* @param OptionsArray $fields_keyword Options for OPTINOS keyword.
107+
*/
108+
public function __construct(
109+
$type = null,
110+
$dest = null,
111+
$columns = null,
112+
$values = null,
113+
$fields_options = null,
114+
$fields_keyword = null
115+
) {
116+
$this->type = $type;
117+
$this->dest = $dest;
118+
$this->columns = $columns;
119+
$this->values = $values;
120+
$this->fields_options = $fields_options;
121+
$this->fields_keyword = $fields_keyword;
122+
}
123+
98124
/**
99125
* @param Parser $parser the parser that serves as context
100126
* @param TokensList $list the list of tokens that are being parsed

0 commit comments

Comments
 (0)