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

Demo::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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