Total Complexity | 2 |
Total Lines | 10 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
14 | final class FindCode |
||
15 | { |
||
16 | 16 | public function __construct(private readonly CodeFinder $codeFinder, private readonly ProgressDisplay $display) |
|
|
|||
17 | { |
||
18 | } |
||
19 | |||
20 | 13 | public function __invoke(CodebaseDirectory $directory): SourceCode |
|
21 | { |
||
22 | 13 | $this->display->start(); |
|
23 | 13 | return $this->codeFinder->find($directory); |
|
24 | } |
||
26 |