DemoCommand::execute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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