Completed
Push — master ( 57efb7...b06714 )
by Vitaly
02:51
created

Inject   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 1
c 2
b 0
f 2
lcom 1
cbo 2
dl 0
loc 8
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A toMetadata() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: root
5
 * Date: 27.07.2016
6
 * Time: 1:55.
7
 */
8
namespace samsonframework\container\annotation;
9
10
use samsonframework\container\metadata\ClassMetadata;
11
12
/**
13
 * Injection annotation class.
14
 *
15
 * @Annotation
16
 */
17
class Inject extends CollectionValue implements MetadataInterface
18
{
19
    /** {@inheritdoc} */
20 2
    public function toMetadata(ClassMetadata &$metadata)
21
    {
22 2
        $metadata->dependencies = $this->collection;
23 2
    }
24
}
25