Completed
Branch master (1f9106)
by Nils
02:44
created

ConfigurableCommand::configureCommand()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 11
rs 9.4285
cc 1
eloc 8
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