ReflectionHelperAbstract   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getReflectionClass() 0 4 1
1
<?php
2
3
namespace Hgraca\Helper\Concept;
4
5
use ReflectionClass;
6
7
abstract class ReflectionHelperAbstract extends HelperAbstract
8
{
9
    private static $reflectionClassCache = [];
10
11 26
    protected static function getReflectionClass(string $fqcn): ReflectionClass
12
    {
13 26
        return self::$reflectionClassCache[$fqcn] ?? self::$reflectionClassCache[$fqcn] = new ReflectionClass($fqcn);
14
    }
15
}
16