-
Notifications
You must be signed in to change notification settings - Fork 168
Expand file tree
/
Copy pathOptions.php
More file actions
71 lines (60 loc) · 1.18 KB
/
Copy pathOptions.php
File metadata and controls
71 lines (60 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/**
* @author mfris
*
*/
namespace PHPSQLParser;
/**
*
* @author mfris
* @package PHPSQLParser
*/
final class Options
{
/**
* @var array
*/
private $options;
/**
* @const string
*/
const CONSISTENT_SUB_TREES = 'consistent_sub_trees';
/**
* @const string
*/
const ANSI_QUOTES = 'ansi_quotes';
/**
* @const string
*/
const IGNORE_COMMENT = 'ignore_comment';
/**
* Options constructor.
*
* @param array $options
*/
public function __construct(array $options)
{
$this->options = $options;
}
/**
* @return bool
*/
public function getConsistentSubtrees()
{
return (isset($this->options[self::CONSISTENT_SUB_TREES]) && $this->options[self::CONSISTENT_SUB_TREES]);
}
/**
* @return bool
*/
public function getANSIQuotes()
{
return (isset($this->options[self::ANSI_QUOTES]) && $this->options[self::ANSI_QUOTES]);
}
/**
* @return bool
*/
public function getIgnoreComment()
{
return (isset($this->options[self::IGNORE_COMMENT]) && $this->options[self::IGNORE_COMMENT]);
}
}