Completed
Push — master ( 926f1e...80db42 )
by Anton
10:25 queued 07:09
created

StatusCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 1
cbo 3
dl 0
loc 22
ccs 7
cts 7
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 16 1
1
<?php
2
/**
3
 * @copyright Bluz PHP Team
4
 * @link https://github.com/bluzphp/bluzman
5
 */
6
7
namespace Bluzman\Command\Db;
8
9
use Bluzman\Input\InputArgument;
10
11
/**
12
 * Get migrations status
13
 *
14
 * @package  Bluzman\Command\Db
15
 * @author   Anton Shevchuk
16
 */
17
class StatusCommand extends AbstractDbCommand
18
{
19
    /**
20
     * Command configuration
21
     */
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