Passed
Push — master ( c8f9ee...5575b8 )
by Satoshi
02:01
created

UnknownClassReflection::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace DependencyAnalyzer\DependencyDumper;
5
6
use PHPStan\Reflection\ReflectionWithFilename;
7
8
class UnknownClassReflection implements ReflectionWithFilename
9
{
10
    /**
11
     * @var string
12
     */
13
    private $className;
14
15
    public function __construct(string $className)
16
    {
17
        $this->className = $className;
18
    }
19
20
    public function getFileName(): string
21
    {
22
        return 'unknown';
23
    }
24
25
    public function getDisplayName(): string
26
    {
27
        return $this->className;
28
    }
29
}
30