Command   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 15
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setupDefinition() 0 8 1
1
<?php
2
3
namespace BrainExe\Core\Annotations\Builder;
4
5
use BrainExe\Core\DependencyInjection\CompilerPass\ConsoleCompilerPass;
6
use Symfony\Component\DependencyInjection\Definition;
7
8
class Command extends ServiceDefinition
9
{
10
11
    /**
12
     * {@inheritdoc}
13
     */
14 1
    public function setupDefinition(Definition $definition, string $serviceId)
15
    {
16 1
        $definition->addTag(ConsoleCompilerPass::TAG);
17 1
        $definition->setPublic(true);
18 1
        $definition->setShared(false);
19
20 1
        return sprintf('__console.%s', $serviceId);
21
    }
22
}
23