| 1 | <?php |
||
| 17 | class Reflection implements Locator |
||
| 18 | { |
||
| 19 | private $reflector; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Constructor |
||
| 23 | * |
||
| 24 | * @param string $reflector Roave BetterReflection reflector |
||
| 25 | */ |
||
| 26 | 4 | public function __construct(Reflector $reflector) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Get the file path to the class |
||
| 33 | * |
||
| 34 | * @param string $className Name of the class |
||
| 35 | * |
||
| 36 | * @return string File path to the file |
||
| 37 | */ |
||
| 38 | 4 | public function locate(string $className) : string |
|
| 48 | } |
||
| 49 |