1 | <?php |
||
23 | class ColoredSqlOutput implements OutputInterface |
||
24 | { |
||
25 | |||
26 | use \Kdyby\StrictObjects\Scream; |
||
27 | |||
28 | /** |
||
29 | * @var \Symfony\Component\Console\Output\OutputInterface |
||
30 | */ |
||
31 | private $output; |
||
32 | |||
33 | |||
34 | |||
35 | public function __construct(OutputInterface $output) |
||
39 | |||
40 | |||
41 | |||
42 | protected function formatSqls($message) |
||
63 | |||
64 | |||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL) |
||
73 | |||
74 | |||
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | public function writeln($messages, $type = self::OUTPUT_NORMAL) |
||
83 | |||
84 | |||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function setVerbosity($level) |
||
93 | |||
94 | |||
95 | |||
96 | /** |
||
97 | * {@inheritdoc} |
||
98 | */ |
||
99 | public function getVerbosity() |
||
103 | |||
104 | |||
105 | |||
106 | /** |
||
107 | * {@inheritdoc} |
||
108 | */ |
||
109 | public function setDecorated($decorated) |
||
113 | |||
114 | |||
115 | |||
116 | /** |
||
117 | * {@inheritdoc} |
||
118 | */ |
||
119 | public function isDecorated() |
||
123 | |||
124 | |||
125 | |||
126 | /** |
||
127 | * {@inheritdoc} |
||
128 | */ |
||
129 | public function isQuiet() |
||
133 | |||
134 | |||
135 | |||
136 | /** |
||
137 | * {@inheritdoc} |
||
138 | */ |
||
139 | public function isVerbose() |
||
143 | |||
144 | |||
145 | |||
146 | /** |
||
147 | * {@inheritdoc} |
||
148 | */ |
||
149 | public function isVeryVerbose() |
||
153 | |||
154 | |||
155 | |||
156 | /** |
||
157 | * {@inheritdoc} |
||
158 | */ |
||
159 | public function isDebug() |
||
163 | |||
164 | |||
165 | |||
166 | /** |
||
167 | * {@inheritdoc} |
||
168 | */ |
||
169 | public function setFormatter(OutputFormatterInterface $formatter) |
||
173 | |||
174 | |||
175 | |||
176 | /** |
||
177 | * {@inheritdoc} |
||
178 | */ |
||
179 | public function getFormatter() |
||
183 | |||
184 | } |
||
185 |