1<?php
2/**
3 * @author     mfris
4 *
5 */
6
7namespace PHPSQLParser;
8
9/**
10 *
11 * @author  mfris
12 * @package PHPSQLParser
13 */
14final class Options
15{
16
17    /**
18     * @var array
19     */
20    private $options;
21
22    /**
23     * @const string
24     */
25    const CONSISTENT_SUB_TREES = 'consistent_sub_trees';
26
27    /**
28     * @const string
29     */
30    const ANSI_QUOTES = 'ansi_quotes';
31
32    /**
33     * Options constructor.
34     *
35     * @param array $options
36     */
37    public function __construct(array $options)
38    {
39        $this->options = $options;
40    }
41
42    /**
43     * @return bool
44     */
45    public function getConsistentSubtrees()
46    {
47        return (isset($this->options[self::CONSISTENT_SUB_TREES]) && $this->options[self::CONSISTENT_SUB_TREES]);
48    }
49
50    /**
51     * @return bool
52     */
53    public function getANSIQuotes()
54    {
55        return (isset($this->options[self::ANSI_QUOTES]) && $this->options[self::ANSI_QUOTES]);
56    }
57}
58