Completed
Push — master ( b4fb45...fd4491 )
by dima
02:45
created

InfoCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 13
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 5 1
A execute() 0 4 1
1
<?php
2
3
namespace Frameworkless\Console\Commands;
4
5
6
use Symfony\Component\Console\Command\Command;
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Console\Output\OutputInterface;
9
/**
10
 * Description of HelloWorldCommand
11
 *
12
 * @author Dmitriy
13
 */
14
class InfoCommand extends Command
15
{
16
    protected function configure()
17
    {
18
        $this->setName('info')
19
            ->setDescription('Outputs \'Info about command\'');
20
    }
21
22
    protected function execute(InputInterface $input, OutputInterface $output)
23
    {
24
        $output->writeln('This is frameworkless console');
25
    }
26
}
27