ReflectionClassAnalyzer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A analyze() 0 8 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