diff options
author | Dan Ungureanu <udan1107@gmail.com> | 2017-05-12 19:14:29 +0300 |
---|---|---|
committer | Dan Ungureanu <udan11@users.noreply.github.com> | 2017-05-16 21:58:07 +0300 |
commit | 0520fbdbb632987ce61a8ee205381ab7e46a8205 (patch) | |
tree | c88bbc1a0dcec552f5486b22d5c2343816074b47 /src/Components | |
parent | 4412836bdb42df0dac95089e99362a948a7e4225 (diff) | |
download | sql-parser-0520fbdbb632987ce61a8ee205381ab7e46a8205.zip sql-parser-0520fbdbb632987ce61a8ee205381ab7e46a8205.tar.gz sql-parser-0520fbdbb632987ce61a8ee205381ab7e46a8205.tar.bz2 |
Added constructor for IntoKeyword.
Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
Diffstat (limited to 'src/Components')
-rw-r--r-- | src/Components/IntoKeyword.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/Components/IntoKeyword.php b/src/Components/IntoKeyword.php index 6c52f20..a89ee36 100644 --- a/src/Components/IntoKeyword.php +++ b/src/Components/IntoKeyword.php @@ -96,6 +96,32 @@ class IntoKeyword extends Component public $lines_options; /** + * Constructor. + * + * @param string $type Type of destination (may be OUTFILE). + * @param string|Expression $dest Actual destination. + * @param array $columns Column list of destination. + * @param array $values Selected fields. + * @param OptionsArray $fields_options Options for FIELDS/COLUMNS keyword. + * @param OptionsArray $fields_keyword Options for OPTINOS keyword. + */ + public function __construct( + $type = null, + $dest = null, + $columns = null, + $values = null, + $fields_options = null, + $fields_keyword = null + ) { + $this->type = $type; + $this->dest = $dest; + $this->columns = $columns; + $this->values = $values; + $this->fields_options = $fields_options; + $this->fields_keyword = $fields_keyword; + } + + /** * @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 |