Completed
Push — symfony-console ( 9880c9...5f68e3 )
by Arnaud
05:25 queued 03:30
created

CommandTest::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Cecil\Command;
4
5
use Symfony\Component\Console\Command\Command;
6
use Symfony\Component\Console\Input\InputInterface;
7
use Symfony\Component\Console\Output\OutputInterface;
8
9
class CommandTest extends Command
10
{
11
    protected function configure()
12
    {
13
        $this
14
            ->setName('test')
15
            ->setDescription('This is a test.')
16
            ->setHelp('This command allows you to do a test...');
17
    }
18
19
    protected function execute(InputInterface $input, OutputInterface $output)
20
    {
21
        $output->writeln('A test! '.$input->getArgument('path'));
22
23
        return 0;
24
    }
25
}
26