1 | <?php |
||
19 | class Environment |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $name; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $options; |
||
30 | |||
31 | /** |
||
32 | * @var \Symfony\Component\Console\Input\InputInterface |
||
33 | */ |
||
34 | protected $input; |
||
35 | |||
36 | /** |
||
37 | * @var \Symfony\Component\Console\Output\OutputInterface |
||
38 | */ |
||
39 | protected $output; |
||
40 | |||
41 | /** |
||
42 | * @var int |
||
43 | */ |
||
44 | protected $currentVersion; |
||
45 | |||
46 | /** |
||
47 | * @var string |
||
48 | */ |
||
49 | protected $schemaTableName = 'phinxlog'; |
||
50 | |||
51 | /** |
||
52 | * @var \Phinx\Db\Adapter\AdapterInterface |
||
53 | */ |
||
54 | protected $adapter; |
||
55 | |||
56 | /** |
||
57 | * @param string $name Environment Name |
||
58 | * @param array $options Options |
||
59 | */ |
||
60 | public function __construct($name, $options) |
||
65 | |||
66 | /** |
||
67 | * Executes the specified migration on this environment. |
||
68 | * |
||
69 | * @param \Phinx\Migration\MigrationInterface $migration Migration |
||
70 | * @param string $direction Direction |
||
71 | * @param bool $fake flag that if true, we just record running the migration, but not actually do the migration |
||
72 | * |
||
73 | * @return void |
||
74 | */ |
||
75 | public function executeMigration(MigrationInterface $migration, $direction = MigrationInterface::UP, $fake = false) |
||
120 | 4 | ||
121 | 4 | /** |
|
122 | 4 | * Executes the specified seeder on this environment. |
|
123 | * |
||
124 | 4 | * @param \Phinx\Seed\SeedInterface $seed |
|
125 | * |
||
126 | 5 | * @return void |
|
127 | 5 | */ |
|
128 | public function executeSeed(SeedInterface $seed) |
||
147 | |||
148 | /** |
||
149 | * Sets the environment's name. |
||
150 | * |
||
151 | * @param string $name Environment Name |
||
152 | * |
||
153 | * @return $this |
||
154 | */ |
||
155 | public function setName($name) |
||
161 | |||
162 | /** |
||
163 | * Gets the environment name. |
||
164 | * |
||
165 | * @return string |
||
166 | */ |
||
167 | public function getName() |
||
171 | 1 | ||
172 | /** |
||
173 | 1 | * Sets the environment's options. |
|
174 | 1 | * |
|
175 | * @param array $options Environment Options |
||
176 | * |
||
177 | * @return $this |
||
178 | */ |
||
179 | public function setOptions($options) |
||
185 | |||
186 | /** |
||
187 | * Gets the environment's options. |
||
188 | * |
||
189 | * @return array |
||
190 | */ |
||
191 | public function getOptions() |
||
195 | 6 | ||
196 | 6 | /** |
|
197 | * Sets the console input. |
||
198 | * |
||
199 | * @param \Symfony\Component\Console\Input\InputInterface $input |
||
200 | * |
||
201 | * @return $this |
||
202 | */ |
||
203 | public function setInput(InputInterface $input) |
||
204 | 2 | { |
|
205 | $this->input = $input; |
||
206 | 2 | ||
207 | return $this; |
||
208 | } |
||
209 | |||
210 | /** |
||
211 | * Gets the console input. |
||
212 | * |
||
213 | * @return \Symfony\Component\Console\Input\InputInterface |
||
214 | */ |
||
215 | 7 | public function getInput() |
|
216 | { |
||
217 | 7 | return $this->input; |
|
218 | 7 | } |
|
219 | |||
220 | /** |
||
221 | * Sets the console output. |
||
222 | * |
||
223 | * @param \Symfony\Component\Console\Output\OutputInterface $output Output |
||
224 | * |
||
225 | * @return $this |
||
226 | 9 | */ |
|
227 | public function setOutput(OutputInterface $output) |
||
233 | |||
234 | /** |
||
235 | * Gets the console output. |
||
236 | * |
||
237 | 6 | * @return \Symfony\Component\Console\Output\OutputInterface |
|
238 | */ |
||
239 | 6 | public function getOutput() |
|
243 | |||
244 | /** |
||
245 | * Gets all migrated version numbers. |
||
246 | * |
||
247 | * @return array |
||
248 | 8 | */ |
|
249 | public function getVersions() |
||
253 | |||
254 | /** |
||
255 | * Get all migration log entries, indexed by version creation time and sorted in ascending order by the configuration's |
||
256 | * version_order option |
||
257 | * |
||
258 | 6 | * @return array |
|
259 | */ |
||
260 | 6 | public function getVersionLog() |
|
261 | { |
||
262 | return $this->getAdapter()->getVersionLog(); |
||
263 | } |
||
264 | |||
265 | /** |
||
266 | * Sets the current version of the environment. |
||
267 | * |
||
268 | * @param int $version Environment Version |
||
269 | 5 | * |
|
270 | * @return $this |
||
271 | 5 | */ |
|
272 | public function setCurrentVersion($version) |
||
278 | |||
279 | /** |
||
280 | 6 | * Gets the current version of the environment. |
|
281 | * |
||
282 | 6 | * @return int |
|
283 | 6 | */ |
|
284 | public function getCurrentVersion() |
||
300 | 1 | ||
301 | 1 | /** |
|
302 | * Sets the database adapter. |
||
303 | 6 | * |
|
304 | 6 | * @param \Phinx\Db\Adapter\AdapterInterface $adapter Database Adapter |
|
305 | * |
||
306 | * @return $this |
||
307 | */ |
||
308 | public function setAdapter(AdapterInterface $adapter) |
||
314 | |||
315 | 14 | /** |
|
316 | 14 | * Gets the database adapter. |
|
317 | * |
||
318 | * @throws \RuntimeException |
||
319 | * |
||
320 | * @return \Phinx\Db\Adapter\AdapterInterface |
||
321 | */ |
||
322 | public function getAdapter() |
||
371 | |||
372 | /** |
||
373 | * Sets the schema table name. |
||
374 | * |
||
375 | * @param string $schemaTableName Schema Table Name |
||
376 | * |
||
377 | * @return $this |
||
378 | 1 | */ |
|
379 | public function setSchemaTableName($schemaTableName) |
||
385 | |||
386 | /** |
||
387 | * Gets the schema table name. |
||
388 | * |
||
389 | 1 | * @return string |
|
390 | */ |
||
391 | 1 | public function getSchemaTableName() |
|
395 | } |
||
396 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.