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

CommandTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 3
dl 0
loc 17
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 7 1
A execute() 0 6 1
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