Test Failed
Pull Request — master (#146)
by Dmitriy
05:49 queued 02:45
created

Hello   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
eloc 6
c 1
b 0
f 1
dl 0
loc 14
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
    public function __construct()
18
    {
19
        parent::__construct();
20
    }
21
22
    protected function execute(InputInterface $input, OutputInterface $output): int
23
    {
24
        $output->writeln('Hello!');
25
        return ExitCode::OK;
26
    }
27
}
28