| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 4 | public function locate(string $className) : string |
|
| 39 | { |
||
| 40 | try { |
||
| 41 | 4 | $reflectionClass = $this->reflector->reflect($className); |
|
| 42 | 1 | } catch (Exception $e) { |
|
| 43 | 1 | throw new NotFoundException("Unable to locate class {$className}"); |
|
| 44 | } |
||
| 45 | |||
| 46 | 3 | return realpath($reflectionClass->getFileName()); |
|
| 47 | } |
||
| 48 | } |
||
| 49 |