Inject   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 2
A getServices() 0 4 1
1
<?php
2
namespace Acelaya\ZsmAnnotatedServices\Annotation;
3
4
use Doctrine\Common\Annotations\Annotation;
5
6
/**
7
 * Class Inject
8
 * @author
9
 * @link
10
 * @Annotation
11
 * @Target({"METHOD"})
12
 */
13
class Inject
14
{
15
    /**
16
     * @var array
17
     */
18
    private $services;
19
20
    /**
21
     * Inject constructor.
22
     * @param array $values
23
     */
24 5
    public function __construct(array $values)
25
    {
26 5
        $this->services = isset($values['value']) ? $values['value'] : [];
27 5
    }
28
29
    /**
30
     * @return array
31
     */
32 7
    public function getServices()
33
    {
34 7
        return $this->services;
35
    }
36
}
37