Passed
Push — master ( 056350...65484c )
by Satoshi
05:02
created

UnknownReflectionClass::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 1
dl 0
loc 9
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace DependencyAnalyzer\DependencyGraphBuilder;
5
6
/**
7
 * @canOnlyUsedBy \DependencyAnalyzer\DependencyGraphBuilder
8
 */
9
class UnknownReflectionClass extends \ReflectionClass
10
{
11
    protected $unknownClassName;
12
13
    public function __construct(string $name)
14
    {
15
        try {
16
            parent::__construct('');
17
        } catch (\ReflectionException $e) {
18
            //
19
        }
20
21
        $this->unknownClassName = $name;
22
    }
23
24
    public function getName()
25
    {
26
        return $this->unknownClassName;
27
    }
28
}
29