Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function __invoke(string $directory): ClassReflector |
||
19 | { |
||
20 | $astLocator = (new BetterReflection())->astLocator(); |
||
21 | return new ClassReflector( |
||
22 | new AggregateSourceLocator([ |
||
23 | new PhpInternalSourceLocator($astLocator), |
||
24 | new EvaledCodeSourceLocator($astLocator), |
||
25 | new DirectoriesSourceLocator([$directory], $astLocator), |
||
26 | ]) |
||
30 |