Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | protected function createLocatedSource(Identifier $identifier) : ?LocatedSource |
||
40 | { |
||
41 | if (! $identifier->isClass()) { |
||
42 | return null; |
||
43 | } |
||
44 | |||
45 | $classFile = $this->classMap[$identifier->getName()] ?? null; |
||
46 | |||
47 | if ($classFile === null) { |
||
48 | return null; |
||
49 | } |
||
50 | |||
51 | return new LocatedSource(file_get_contents($classFile), $classFile); |
||
52 | } |
||
54 |