Passed
Push — feature/custom-services-v2 ( f3d61c...0bc47e )
by Chema
03:49
created

HelloCommand::servicesMapping()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Feature\Framework\CustomServiceAware\Module\Infrastructure\Command;
6
7
use Gacela\Framework\CustomServicesResolverAwareTrait;
8
use Symfony\Component\Console\Command\Command;
9
use Symfony\Component\Console\Input\InputInterface;
10
use Symfony\Component\Console\Output\OutputInterface;
11
12
/**
13
 * @method \GacelaTest\Feature\Framework\CustomServiceAware\Module\Infrastructure\Persistence\CustomHelloRepository getRepository()
14
 */
15
final class HelloCommand extends Command
16
{
17
    use CustomServicesResolverAwareTrait;
18
19
    protected function execute(InputInterface $input, OutputInterface $output): int
20
    {
21
        $output->write($this->getRepository()->findNameName());
22
23
        return self::SUCCESS;
24
    }
25
}
26