Failed Conditions
Push — annotation-metadata ( 414255 )
by Michael
02:42
created

DefaultReflectionProvider::getClassReflection()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Annotations\Metadata\Reflection;
6
7
use ReflectionClass;
8
9
final class DefaultReflectionProvider implements ClassReflectionProvider
10
{
11
    public function getClassReflection(string $name) : ReflectionClass
12
    {
13
        // TODO: catch exception
14
        return new ReflectionClass($name);
15
    }
16
}
17