ReflectionClassAnalyzer::analyze()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 3
crap 1
1
<?php declare(strict_types = 1);
2
/**
3
 * Created by Ruslan Molodyko.
4
 * Date: 10.09.2016
5
 * Time: 15:33
6
 */
7
namespace samsonframework\container\definition\analyzer\reflection;
8
9
use samsonframework\container\definition\analyzer\ClassAnalyzerInterface;
10
use samsonframework\container\definition\analyzer\DefinitionAnalyzer;
11
use samsonframework\container\definition\ClassDefinition;
12
13
/**
14
 * Class ReflectionClassAnalyzer
15
 *
16
 * @author Ruslan Molodyko <[email protected]>
17
 */
18
class ReflectionClassAnalyzer implements ClassAnalyzerInterface
19
{
20
    /** {@inheritdoc} */
21 4
    public function analyze(
22
        DefinitionAnalyzer $analyzer,
23
        ClassDefinition $classDefinition,
24
        \ReflectionClass $reflectionClass
25
    ) {
26
        // Get name space from class name
27 4
        $classDefinition->setNameSpace($reflectionClass->getNamespaceName());
28 4
    }
29
}
30