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