Completed
Push — master ( 14dc0c...a76d7b )
by Vitaly
03:48 queued 01:30
created

Alias   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A toClassMetadata() 0 5 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 Alias.
14
 *
15
 * @Annotation
16
 */
17
class Alias extends AnnotationWithValue implements ClassInterface
18
{
19
    /** {@inheritdoc} */
20 1
    public function toClassMetadata(ClassMetadata $classMetadata)
21
    {
22
        // Add all found annotation collection to metadata collection
23 1
        $classMetadata->alias = array_shift($this->collection);
24 1
    }
25
}
26