Passed
Push — master ( 5e573b...577d98 )
by Alexander
06:08 queued 03:39
created

Hello   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
c 2
b 0
f 0
dl 0
loc 14
ccs 6
cts 6
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A execute() 0 4 1
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Command;
6
7
use Symfony\Component\Console\Command\Command;
8
use Symfony\Component\Console\Input\InputInterface;
9
use Symfony\Component\Console\Output\OutputInterface;
10
use Yiisoft\Yii\Console\ExitCode;
11
12
final class Hello extends Command
13
{
14
    protected static $defaultName = 'hello';
15
    protected static $defaultDescription = 'An example command';
16
17 1
    public function __construct()
18
    {
19 1
        parent::__construct();
20 1
    }
21
22 1
    protected function execute(InputInterface $input, OutputInterface $output): int
23
    {
24 1
        $output->writeln('Hello!');
25 1
        return ExitCode::OK;
26
    }
27
}
28