DemoCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 17
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 5 1
A execute() 0 2 1
1
<?php declare(strict_types = 1);
2
3
namespace Simplex\Quickstart\Module\Demo\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
final class DemoCommand extends Command
10
{
11
    private const COMMAND_NAME = 'app:demo';
12
13
    protected function configure()
14
    {
15
        $this
16
            ->setName(self::COMMAND_NAME)
17
            ->setDescription('Example command')
18
        ;
19
    }
20
21
    /**
22
     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
23
     */
24
    protected function execute(InputInterface $input, OutputInterface $output)
25
    {
26
        // ...
27
    }
28
}
29