Test Failed
Push — master ( c8467f...e7290e )
by Dmitriy
04:53 queued 02:17
created

Hello::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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