Completed
Push — master ( 6bfcaa...57efb7 )
by Vitaly
02:48
created

Scope::__construct()   B

Complexity

Conditions 6
Paths 4

Size

Total Lines 13
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 6

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 13
ccs 7
cts 7
cp 1
rs 8.8571
cc 6
eloc 6
nc 4
nop 1
crap 6
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
use samsonframework\container\metadata\ClassMetadata;
10
11
/**
12
 * Class Scope.
13
 *
14
 * @Annotation
15
 */
16
class Scope extends CollectionValue implements MetadataInterface
17
{
18
    /** {@inheritdoc} */
19 1
    public function toMetadata(ClassMetadata &$metadata)
20
    {
21
        // Add all found annotation collection to metadata collection
22 1
        $metadata->scopes = array_merge($metadata->scopes, $this->collection);
23 1
    }
24
}
25