| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 14 | protected function configure() |
|
| 23 | { |
||
| 24 | $this |
||
| 25 | // the name of the command (the part after "bin/bluzman") |
||
| 26 | 14 | ->setName('db:status') |
|
| 27 | // the short description shown while running "php bin/bluzman list" |
||
| 28 | 14 | ->setDescription('Get migration status') |
|
| 29 | // the full command description shown when running the command with |
||
| 30 | // the "--help" option |
||
| 31 | 14 | ->setHelp('This command is shorthand to phinx tool') |
|
| 32 | ; |
||
| 33 | |||
| 34 | 14 | $env = new InputArgument('--environment', InputArgument::OPTIONAL, 'Environment', 'default'); |
|
| 35 | |||
| 36 | 14 | $this->getDefinition()->addArgument($env); |
|
| 37 | 14 | } |
|
| 38 | } |
||
| 39 |