ContainerAwareCommandTest::execute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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