Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | protected function configure() |
||
24 | { |
||
25 | $this |
||
26 | 15 | // the name of the command (the part after "bin/bluzman") |
|
27 | ->setName('db:create') |
||
28 | 15 | // the short description shown while running "php bin/bluzman list" |
|
29 | ->setDescription('Create DB migrations') |
||
30 | // the full command description shown when running the command with |
||
31 | 15 | // the "--help" option |
|
32 | ->setHelp('This command is shorthand to phinx tool') |
||
33 | ; |
||
34 | 15 | ||
35 | $name = new InputArgument('name', InputArgument::REQUIRED, 'Migration name is required'); |
||
36 | 15 | ||
37 | 15 | $this->getDefinition()->addArgument($name); |
|
38 | } |
||
40 |