1 | <?php |
||
38 | class Environment |
||
39 | { |
||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | protected $name; |
||
44 | |||
45 | /** |
||
46 | * @var array |
||
47 | */ |
||
48 | protected $options; |
||
49 | |||
50 | /** |
||
51 | * @var \Symfony\Component\Console\Input\InputInterface |
||
52 | */ |
||
53 | protected $input; |
||
54 | |||
55 | /** |
||
56 | * @var \Symfony\Component\Console\Output\OutputInterface |
||
57 | */ |
||
58 | protected $output; |
||
59 | |||
60 | /** |
||
61 | * @var int |
||
62 | */ |
||
63 | protected $currentVersion; |
||
64 | |||
65 | /** |
||
66 | * @var string |
||
67 | */ |
||
68 | protected $schemaTableName = 'phinxlog'; |
||
69 | |||
70 | /** |
||
71 | * @var \Phinx\Db\Adapter\AdapterInterface |
||
72 | */ |
||
73 | protected $adapter; |
||
74 | |||
75 | /** |
||
76 | * Class Constructor. |
||
77 | * |
||
78 | * @param string $name Environment Name |
||
79 | * @param array $options Options |
||
80 | */ |
||
81 | public function __construct($name, $options) |
||
86 | 404 | ||
87 | /** |
||
88 | * Executes the specified migration on this environment. |
||
89 | * |
||
90 | * @param \Phinx\Migration\MigrationInterface $migration Migration |
||
91 | * @param string $direction Direction |
||
92 | * @param bool $fake flag that if true, we just record running the migration, but not actually do the migration |
||
93 | * @return void |
||
94 | */ |
||
95 | 10 | public function executeMigration(MigrationInterface $migration, $direction = MigrationInterface::UP, $fake = false) |
|
140 | |||
141 | /** |
||
142 | * Executes the specified seeder on this environment. |
||
143 | * |
||
144 | * @param \Phinx\Seed\SeedInterface $seed |
||
145 | * @return void |
||
146 | */ |
||
147 | public function executeSeed(SeedInterface $seed) |
||
166 | |||
167 | /** |
||
168 | * Sets the environment's name. |
||
169 | * |
||
170 | * @param string $name Environment Name |
||
171 | 1 | * @return \Phinx\Migration\Manager\Environment |
|
172 | */ |
||
173 | 1 | public function setName($name) |
|
179 | |||
180 | /** |
||
181 | * Gets the environment name. |
||
182 | 3 | * |
|
183 | * @return string |
||
184 | 3 | */ |
|
185 | public function getName() |
||
189 | |||
190 | /** |
||
191 | * Sets the environment's options. |
||
192 | * |
||
193 | 6 | * @param array $options Environment Options |
|
194 | * @return \Phinx\Migration\Manager\Environment |
||
195 | 6 | */ |
|
196 | 6 | public function setOptions($options) |
|
202 | |||
203 | /** |
||
204 | 2 | * Gets the environment's options. |
|
205 | * |
||
206 | 2 | * @return array |
|
207 | */ |
||
208 | public function getOptions() |
||
212 | |||
213 | /** |
||
214 | * Sets the console input. |
||
215 | 7 | * |
|
216 | * @param \Symfony\Component\Console\Input\InputInterface $input |
||
217 | 7 | * @return \Phinx\Migration\Manager\Environment |
|
218 | 7 | */ |
|
219 | public function setInput(InputInterface $input) |
||
220 | { |
||
221 | $this->input = $input; |
||
222 | |||
223 | return $this; |
||
224 | } |
||
225 | |||
226 | 9 | /** |
|
227 | * Gets the console input. |
||
228 | 9 | * |
|
229 | * @return \Symfony\Component\Console\Input\InputInterface |
||
230 | */ |
||
231 | public function getInput() |
||
232 | { |
||
233 | return $this->input; |
||
234 | } |
||
235 | |||
236 | /** |
||
237 | 6 | * Sets the console output. |
|
238 | * |
||
239 | 6 | * @param \Symfony\Component\Console\Output\OutputInterface $output Output |
|
240 | 6 | * @return \Phinx\Migration\Manager\Environment |
|
241 | */ |
||
242 | public function setOutput(OutputInterface $output) |
||
248 | 8 | ||
249 | /** |
||
250 | 8 | * Gets the console output. |
|
251 | * |
||
252 | * @return \Symfony\Component\Console\Output\OutputInterface |
||
253 | */ |
||
254 | public function getOutput() |
||
258 | 6 | ||
259 | /** |
||
260 | 6 | * Gets all migrated version numbers. |
|
261 | * |
||
262 | * @return array |
||
263 | */ |
||
264 | public function getVersions() |
||
268 | |||
269 | 5 | /** |
|
270 | * Get all migration log entries, indexed by version creation time and sorted ascendingly by the configuration's |
||
271 | 5 | * version_order option |
|
272 | * |
||
273 | * @return array |
||
274 | */ |
||
275 | public function getVersionLog() |
||
276 | { |
||
277 | return $this->getAdapter()->getVersionLog(); |
||
278 | } |
||
279 | |||
280 | 6 | /** |
|
281 | * Sets the current version of the environment. |
||
282 | 6 | * |
|
283 | 6 | * @param int $version Environment Version |
|
284 | * @return \Phinx\Migration\Manager\Environment |
||
285 | */ |
||
286 | public function setCurrentVersion($version) |
||
292 | |||
293 | /** |
||
294 | * Gets the current version of the environment. |
||
295 | * |
||
296 | 6 | * @return int |
|
297 | 6 | */ |
|
298 | public function getCurrentVersion() |
||
314 | |||
315 | 14 | /** |
|
316 | 14 | * Sets the database adapter. |
|
317 | * |
||
318 | * @param \Phinx\Db\Adapter\AdapterInterface $adapter Database Adapter |
||
319 | * @return \Phinx\Migration\Manager\Environment |
||
320 | */ |
||
321 | public function setAdapter(AdapterInterface $adapter) |
||
327 | 12 | ||
328 | /** |
||
329 | 11 | * Gets the database adapter. |
|
330 | 3 | * |
|
331 | 1 | * @return \Phinx\Db\Adapter\AdapterInterface |
|
332 | */ |
||
333 | public function getAdapter() |
||
380 | 1 | ||
381 | 1 | /** |
|
382 | * Sets the schema table name. |
||
383 | * |
||
384 | * @param string $schemaTableName Schema Table Name |
||
385 | * @return \Phinx\Migration\Manager\Environment |
||
386 | */ |
||
387 | public function setSchemaTableName($schemaTableName) |
||
393 | |||
394 | /** |
||
395 | * Gets the schema table name. |
||
396 | * |
||
397 | * @return string |
||
398 | */ |
||
399 | public function getSchemaTableName() |
||
403 | } |
||
404 |
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.