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

Inject::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 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