Completed
Push — master ( 3f1d1d...0341ae )
by Matze
05:15
created

Service   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 58
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 58
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\ServiceDefinition;
6
use Doctrine\Common\Annotations\Annotation;
7
use Doctrine\Common\Annotations\Reader;
8
use Symfony\Component\DependencyInjection\ContainerBuilder;
9
10
/**
11
 * @Annotation
12
 */
13
class Service extends Annotation
14
{
15
16
    /**
17
     * @param ContainerBuilder $container
18
     * @param Reader $reader
19
     * @return ServiceDefinition
20
     */
21 1
    public static function getBuilder(ContainerBuilder $container, Reader $reader)
22
    {
23 1
        return new ServiceDefinition($container, $reader);
24
    }
25
26
    /**
27
     * @var string
28
     */
29
    public $name;
30
31
    /**
32
     * @var bool
33
     */
34
    public $public = false;
35
36
    /**
37
     * @var mixed
38
     */
39
    public $configurator;
40
41
    /**
42
     * @var string|array
43
     */
44
    public $factory;
45
46
    /**
47
     * @var array[]
48
     */
49
    public $tags = [];
50
51
    /**
52
     * @var bool
53
     */
54
    public $lazy = false;
55
56
    /**
57
     * @var bool
58
     */
59
    public $shared = true;
60
61
    /**
62
     * @var bool
63
     */
64
    public $synthetic = false;
65
66
    /**
67
     * @var bool
68
     */
69
    public $abstract = false;
70
}
71