CompilerPass   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getBuilder() 0 4 1
1
<?php
2
3
namespace BrainExe\Core\Annotations;
4
5
use BrainExe\Core\Annotations\Builder\CompilerPass as Builder;
6
use Doctrine\Common\Annotations\Annotation;
7
use Doctrine\Common\Annotations\Reader;
8
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
9
use Symfony\Component\DependencyInjection\ContainerBuilder;
10
11
/**
12
 * @Annotation
13
 * @api
14
 */
15
class CompilerPass extends Service
16
{
17
18
    /**
19
     * @var int
20
     */
21
    public $priority = 3;
22
23
    /**
24
     * @see PassConfig::TYPE_*
25
     * @var string|null
26
     */
27
    public $type = PassConfig::TYPE_BEFORE_OPTIMIZATION;
28
29
    /**
30
     * {@inheritdoc}
31
     */
32 1
    public static function getBuilder(ContainerBuilder $container, Reader $reader)
33
    {
34 1
        return new Builder($container, $reader);
35
    }
36
}
37