SqlParser\Utils\BufferedQuery::__construct PHP Method

__construct() public method

Constructor.
public __construct ( string $query = '', array $options = [] )
$query string The query to be parsed.
$options array The options of this parser.
    public function __construct($query = '', array $options = array())
    {
        // Merges specified options with defaults.
        $this->options = array_merge(array('delimiter' => ';', 'parse_delimiter' => false, 'add_delimiter' => false), $options);
        $this->query = $query;
        $this->setDelimiter($this->options['delimiter']);
    }