Completed
Push — master ( 550846...8c8483 )
by Anton
09:53
created

MagicCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 12 1
A execute() 0 4 1
1
<?php
2
/**
3
 * @copyright Bluz PHP Team
4
 * @link https://github.com/bluzphp/bluzman
5
 */
6
7
namespace Bluzman\Command;
8
9
use Symfony\Component\Console\Input\InputInterface;
10
use Symfony\Component\Console\Output\OutputInterface;
11
12
/**
13
 * Class TestCommand
14
 *
15
 * @package Bluzman\Command
16
 *
17
 * @author   Pavel Machekhin
18
 * @created  2013-03-28 14:03
19
 */
20
class MagicCommand extends AbstractCommand
21
{
22
    /**
23
     * Command configuration
24
     */
25
    protected function configure()
26
    {
27
        $this
28
            // the name of the command (the part after "bin/bluzman")
29
            ->setName('i-need-magic')
30
            // the short description shown while running "php bin/bluzman list"
31
            ->setDescription('Magic is here')
32
            // the full command description shown when running the command with
33
            // the "--help" option
34
            ->setHelp('This command allows you to contribute')
35
        ;
36
    }
37
38
    /**
39
     * @param InputInterface $input
40
     * @param OutputInterface $output
41
     * @return int|null|void
42
     */
43
    protected function execute(InputInterface $input, OutputInterface $output)
44
    {
45
        $this->callForContribute();
46
    }
47
}
48