Middleware   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
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 11
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

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