@@ -63,6 +63,9 @@ |
||
63 | 63 | $this->io = $io; |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param string $filter |
|
68 | + */ |
|
66 | 69 | public function setupOptions($options, &$filter) |
67 | 70 | { |
68 | 71 | if (isset($options['no-foreign-keys'])) { |
@@ -27,13 +27,13 @@ |
||
27 | 27 | namespace yentu\commands; |
28 | 28 | |
29 | 29 | use clearice\io\Io; |
30 | +use yentu\ChangeLogger; |
|
31 | +use yentu\Migrations; |
|
32 | +use yentu\Reversible; |
|
30 | 33 | use yentu\database\Begin; |
31 | 34 | use yentu\database\DatabaseItem; |
32 | -use yentu\ChangeLogger; |
|
33 | 35 | use yentu\database\ForeignKey; |
34 | 36 | use yentu\factories\DatabaseManipulatorFactory; |
35 | -use yentu\Migrations; |
|
36 | -use yentu\Reversible; |
|
37 | 37 | |
38 | 38 | /** |
39 | 39 | * The migrate command for the yentu database migration system. This class is |
@@ -23,6 +23,9 @@ discard block |
||
23 | 23 | private $skipOnErrors = false; |
24 | 24 | private $migrations; |
25 | 25 | |
26 | + /** |
|
27 | + * @param string $itemType |
|
28 | + */ |
|
26 | 29 | public function skip($itemType) |
27 | 30 | { |
28 | 31 | $this->skippedItemTypes[] = $itemType; |
@@ -41,6 +44,9 @@ discard block |
||
41 | 44 | $this->dryRun = $dryRun; |
42 | 45 | } |
43 | 46 | |
47 | + /** |
|
48 | + * @param string $itemType |
|
49 | + */ |
|
44 | 50 | public function allowOnly($itemType) |
45 | 51 | { |
46 | 52 | $this->allowedItemTypes[] = $itemType; |
@@ -70,6 +76,9 @@ discard block |
||
70 | 76 | $this->migration = $migration; |
71 | 77 | } |
72 | 78 | |
79 | + /** |
|
80 | + * @param string[] $matches |
|
81 | + */ |
|
73 | 82 | private function performOperation($method, $matches, $arguments) |
74 | 83 | { |
75 | 84 | try { |
@@ -4,5 +4,8 @@ |
||
4 | 4 | |
5 | 5 | interface CommandInterface |
6 | 6 | { |
7 | + /** |
|
8 | + * @return null|\yentu\SchemaDescription |
|
9 | + */ |
|
7 | 10 | public function run($args); |
8 | 11 | } |
9 | 12 | \ No newline at end of file |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | use clearice\io\Io; |
6 | 6 | use yentu\CodeWriter; |
7 | -use yentu\exceptions\CommandException; |
|
8 | -use yentu\factories\DatabaseManipulatorFactory; |
|
9 | 7 | use yentu\Migrations; |
10 | 8 | use yentu\Reversible; |
9 | +use yentu\exceptions\CommandException; |
|
10 | +use yentu\factories\DatabaseManipulatorFactory; |
|
11 | 11 | |
12 | 12 | class Import implements CommandInterface, Reversible |
13 | 13 | { |
@@ -27,11 +27,11 @@ |
||
27 | 27 | namespace yentu\commands; |
28 | 28 | |
29 | 29 | use clearice\io\Io; |
30 | -use yentu\factories\DatabaseManipulatorFactory; |
|
31 | 30 | use yentu\Migrations; |
32 | 31 | use yentu\Parameters; |
33 | 32 | use yentu\Reversible; |
34 | 33 | use yentu\exceptions\CommandException; |
34 | +use yentu\factories\DatabaseManipulatorFactory; |
|
35 | 35 | |
36 | 36 | /** |
37 | 37 | * The init command class. This command intiates a project for yentu migration |
@@ -29,15 +29,15 @@ |
||
29 | 29 | |
30 | 30 | use clearice\argparser\ArgumentParser; |
31 | 31 | use clearice\io\Io; |
32 | -use yentu\manipulators\AbstractDatabaseManipulator; |
|
33 | 32 | use ntentan\atiaa\DriverFactory; |
34 | -use yentu\Migrations; |
|
35 | -use yentu\Yentu; |
|
36 | 33 | use ntentan\config\Config; |
37 | -use yentu\commands\Migrate; |
|
38 | 34 | use ntentan\panie\Container; |
39 | 35 | use yentu\Cli; |
36 | +use yentu\Migrations; |
|
37 | +use yentu\Yentu; |
|
40 | 38 | use yentu\commands\CommandInterface; |
39 | +use yentu\commands\Migrate; |
|
40 | +use yentu\manipulators\AbstractDatabaseManipulator; |
|
41 | 41 | |
42 | 42 | $container = new Container(); |
43 | 43 | $container->setup(get_container_settings()); |