Passed
Push — master ( 6ce97f...1fe2f9 )
by huang
05:13
created

Demo   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 4 1
A execute() 0 4 1
1
<?php
2
3
namespace Console;
4
5
use Symfony\Component\Console\Command\Command;
6
use Symfony\Component\Console\Input\InputInterface;
7
use Symfony\Component\Console\Output\OutputInterface;
8
9
/**
10
 * @author    jan huang <[email protected]>
11
 * @copyright 2016
12
 *
13
 * @see      https://www.github.com/janhuang
14
 * @see      https://fastdlabs.com
15
 */
16
class Demo extends Command
17
{
18
    public function configure()
19
    {
20
        $this->setName('demo');
21
    }
22
23
    public function execute(InputInterface $input, OutputInterface $output)
24
    {
25
        $output->writeln('hello world');
26
    }
27
}
28