Completed
Push — master ( 92472c...fe56a0 )
by Vitaly
02:18
created

AutoWire::toClassMetadata()   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: 02.08.16
6
 * Time: 1:59.
7
 */
8
namespace samsonframework\container\annotation;
9
10
use samsonframework\container\metadata\ClassMetadata;
11
12
/**
13
 * Class AutoWire.
14
 *
15
 * @Annotation
16
 */
17
class AutoWire implements ClassInterface
18
{
19
    /** {@inheritdoc} */
20 1
    public function toClassMetadata(ClassMetadata $metadata)
21
    {
22 1
        $metadata->autowire = true;
23 1
    }
24
}
25