Completed
Push — master ( e5c4e9...1f2b71 )
by Matze
07:17
created

Command   A

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\Annotations\Builder\ServiceDefinition;
6
use BrainExe\Core\DependencyInjection\CompilerPass\ConsoleCompilerPass;
7
use Symfony\Component\DependencyInjection\Definition;
8
9
class Command extends ServiceDefinition
10
{
11
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function setupDefinition(Definition $definition, string $serviceId)
16 2
    {
17
        $definition->addTag(ConsoleCompilerPass::TAG);
18
        $definition->setPublic(true);
19 2
        $definition->setShared(false);
20
21 2
        return sprintf('__console.%s', $serviceId);
22 2
    }
23
}
24