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

UnknownClassReflection   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getDisplayName() 0 3 1
A getFileName() 0 3 1
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