| 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 ParseCode |
||
| 15 | { |
||
| 16 | 16 | public function __construct(private readonly CodeParser $codeParser, private readonly ProgressDisplay $display) |
|
|
|
|||
| 17 | { |
||
| 18 | } |
||
| 19 | |||
| 20 | 13 | public function __invoke(SourceCode $sourceCode): Codebase |
|
| 21 | { |
||
| 22 | 13 | $this->display->runningParser(); |
|
| 23 | 13 | return $this->codeParser->parse($sourceCode); |
|
| 24 | } |
||
| 26 |