ConfigurableCommand::configureCommand()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.9
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
namespace whm\Smoke\Cli\Command;
4
5
use Symfony\Component\Console\Input\InputOption;
6
7
abstract class ConfigurableCommand extends SmokeCommand
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    protected function configureCommand($description, $help, $name)
13
    {
14
        $this
15
            ->setDefinition([
16
                new InputOption('config_file', 'c', InputOption::VALUE_REQUIRED, 'config file'),
17
                new InputOption('bootstrap', 'b', InputOption::VALUE_OPTIONAL, 'bootstrap file'),
18
            ])
19
            ->setDescription($description)
20
            ->setHelp($help)
21
            ->setName($name);
22
    }
23
}
24