1 | <?php |
||
19 | class Comment |
||
20 | { |
||
21 | /** |
||
22 | * @var \NilPortugues\Sql\QueryFormatter\Formatter |
||
23 | */ |
||
24 | protected $formatter; |
||
25 | |||
26 | /** |
||
27 | * @var Indent |
||
28 | */ |
||
29 | protected $indentation; |
||
30 | |||
31 | /** |
||
32 | * @var NewLine |
||
33 | */ |
||
34 | protected $newLine; |
||
35 | |||
36 | /** |
||
37 | * @param Formatter $formatter |
||
38 | * @param Indent $indentation |
||
39 | * @param NewLine $newLine |
||
40 | */ |
||
41 | public function __construct(Formatter $formatter, Indent $indentation, NewLine $newLine) |
||
47 | |||
48 | /** |
||
49 | * @param $token |
||
50 | * |
||
51 | * @return bool |
||
52 | */ |
||
53 | public function stringHasCommentToken($token) |
||
58 | |||
59 | /** |
||
60 | * @param $token |
||
61 | * @param string $tab |
||
62 | * @param $queryValue |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | public function writeCommentBlock($token, $tab, $queryValue) |
||
80 | } |
||
81 |