ContainerAwareCommandTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 4 1
A execute() 0 4 1
1
<?php
2
namespace LuisMulinari\Consoleful\fixtures;
3
4
use Lcobucci\DependencyInjection\ContainerInjector;
5
use Symfony\Component\Console\Input\InputInterface;
6
use Symfony\Component\Console\Output\OutputInterface;
7
use Symfony\Component\Console\Command\Command;
8
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
9
10
/**
11
 * Class ContainerAwareCommandTest
12
 *
13
 * @author Luis Henrique Mulinari <[email protected]>
14
 */
15
class ContainerAwareCommandTest extends Command implements ContainerAwareInterface
16
{
17
    use ContainerInjector;
18
19
    protected function configure()
20
    {
21
        $this->setName('command:test2')->setDescription('description2');
22
    }
23
24
    protected function execute(InputInterface $input, OutputInterface $output)
25
    {
26
        $output->writeln('command2');
27
    }
28
}
29