SeedCreateCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 7
c 1
b 0
f 0
dl 0
loc 20
ccs 7
cts 7
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 15 1
1
<?php
2
3
/**
4
 * @copyright Bluz PHP Team
5
 * @link https://github.com/bluzphp/bluzman
6
 */
7
8
namespace Bluzman\Command\Db;
9
10
use Bluzman\Input\InputArgument;
11
12
/**
13
 * Create seed command
14
 *
15
 * @package  Bluzman\Command\Db
16
 * @author   Anton Shevchuk
17
 */
18
class SeedCreateCommand extends AbstractDbCommand
19
{
20
    /**
21
     * Command configuration
22 15
     */
23
    protected function configure()
24
    {
25
        $this
26 15
            // the name of the command (the part after "bin/bluzman")
27
            ->setName('db:seed:create')
28 15
            // the short description shown while running "php bin/bluzman list"
29
            ->setDescription('Create seed file')
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, 'Seed name is required');
36 15
37 15
        $this->getDefinition()->addArgument($name);
38
    }
39
}
40