1 | <?php |
||
40 | abstract class AbstractAdapter implements AdapterInterface |
||
41 | { |
||
42 | /** |
||
43 | * @var array |
||
44 | */ |
||
45 | protected $options = []; |
||
46 | |||
47 | /** |
||
48 | * @var \Symfony\Component\Console\Input\InputInterface |
||
49 | */ |
||
50 | protected $input; |
||
51 | |||
52 | /** |
||
53 | * @var \Symfony\Component\Console\Output\OutputInterface |
||
54 | */ |
||
55 | protected $output; |
||
56 | |||
57 | /** |
||
58 | * @var string |
||
59 | */ |
||
60 | protected $schemaTableName = 'phinxlog'; |
||
61 | |||
62 | /** |
||
63 | * Class Constructor. |
||
64 | * |
||
65 | * @param array $options Options |
||
66 | * @param \Symfony\Component\Console\Input\InputInterface $input Input Interface |
||
67 | * @param \Symfony\Component\Console\Output\OutputInterface $output Output Interface |
||
68 | */ |
||
69 | 341 | public function __construct(array $options, InputInterface $input = null, OutputInterface $output = null) |
|
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | 287 | public function setOptions(array $options) |
|
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | 196 | public function getOptions() |
|
101 | |||
102 | /** |
||
103 | * {@inheritdoc} |
||
104 | */ |
||
105 | 8 | public function hasOption($name) |
|
109 | |||
110 | /** |
||
111 | * {@inheritdoc} |
||
112 | */ |
||
113 | public function getOption($name) |
||
121 | |||
122 | /** |
||
123 | * {@inheritdoc} |
||
124 | 269 | */ |
|
125 | public function setInput(InputInterface $input) |
||
131 | |||
132 | /** |
||
133 | 218 | * {@inheritdoc} |
|
134 | */ |
||
135 | 218 | public function getInput() |
|
139 | |||
140 | /** |
||
141 | 269 | * {@inheritdoc} |
|
142 | */ |
||
143 | 269 | public function setOutput(OutputInterface $output) |
|
149 | |||
150 | 8 | /** |
|
151 | * {@inheritdoc} |
||
152 | 8 | */ |
|
153 | public function getOutput() |
||
162 | |||
163 | /** |
||
164 | * {@inheritdoc} |
||
165 | * |
||
166 | * @return array |
||
167 | */ |
||
168 | public function getVersions() |
||
174 | |||
175 | /** |
||
176 | 195 | * Gets the schema table name. |
|
177 | * |
||
178 | 195 | * @return string |
|
179 | */ |
||
180 | public function getSchemaTableName() |
||
184 | |||
185 | /** |
||
186 | * Sets the schema table name. |
||
187 | 7 | * |
|
188 | * @param string $schemaTableName Schema Table Name |
||
189 | 7 | * @return $this |
|
190 | 7 | */ |
|
191 | public function setSchemaTableName($schemaTableName) |
||
197 | |||
198 | 193 | /** |
|
199 | * {@inheritdoc} |
||
200 | */ |
||
201 | public function hasSchemaTable() |
||
205 | |||
206 | /** |
||
207 | * {@inheritdoc} |
||
208 | 191 | */ |
|
209 | public function createSchemaTable() |
||
228 | |||
229 | /** |
||
230 | * {@inheritdoc} |
||
231 | */ |
||
232 | public function getAdapterType() |
||
236 | |||
237 | 208 | /** |
|
238 | * {@inheritdoc} |
||
239 | */ |
||
240 | public function isValidColumnType(Column $column) |
||
244 | |||
245 | 218 | /** |
|
246 | * Determines if instead of executing queries a dump to standard output is needed |
||
247 | 218 | * |
|
248 | * @return bool |
||
249 | 218 | */ |
|
250 | public function isDryRunEnabled() |
||
256 | |||
257 | /** |
||
258 | * Determines whether to print the executed queries in the console |
||
259 | * |
||
260 | * @return bool |
||
261 | */ |
||
262 | public function isVerbosityEnabled() |
||
268 | } |
||
269 |