1 | <?php |
||
19 | class Parentheses |
||
20 | { |
||
21 | /** |
||
22 | * @var bool |
||
23 | */ |
||
24 | protected $inlineParentheses = false; |
||
25 | /** |
||
26 | * @var \NilPortugues\Sql\QueryFormatter\Formatter |
||
27 | */ |
||
28 | protected $formatter; |
||
29 | |||
30 | /** |
||
31 | * @var Indent |
||
32 | */ |
||
33 | protected $indentation; |
||
34 | |||
35 | /** |
||
36 | * @param Formatter $formatter |
||
37 | * @param Indent $indentation |
||
38 | */ |
||
39 | public function __construct(Formatter $formatter, Indent $indentation) |
||
44 | |||
45 | /** |
||
46 | * @return bool |
||
47 | */ |
||
48 | public function getInlineParentheses() |
||
52 | |||
53 | /** |
||
54 | * @param bool $inlineParentheses |
||
55 | * |
||
56 | * @return $this |
||
57 | */ |
||
58 | public function setInlineParentheses($inlineParentheses) |
||
64 | |||
65 | /** |
||
66 | * @param $token |
||
67 | * |
||
68 | * @return bool |
||
69 | */ |
||
70 | public function stringIsOpeningParentheses($token) |
||
74 | |||
75 | /** |
||
76 | * |
||
77 | */ |
||
78 | public function writeNewInlineParentheses() |
||
84 | |||
85 | /** |
||
86 | * @param $token |
||
87 | * |
||
88 | * @return bool |
||
89 | */ |
||
90 | public function invalidParenthesesTokenValue($token) |
||
95 | |||
96 | /** |
||
97 | * @param $token |
||
98 | * |
||
99 | * @return bool |
||
100 | */ |
||
101 | public function invalidParenthesesTokenType($token) |
||
108 | |||
109 | /** |
||
110 | * @param $token |
||
111 | * |
||
112 | * @return bool |
||
113 | */ |
||
114 | public function stringIsClosingParentheses($token) |
||
118 | |||
119 | /** |
||
120 | * @param string $tab |
||
121 | * @param $queryValue |
||
122 | */ |
||
123 | public function writeInlineParenthesesBlock($tab, $queryValue) |
||
139 | } |
||
140 |