| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | final class ProgressBarSubscriber implements AfterAnalysis, AfterFileAnalysis, BeforeAnalysis |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var ProgressBar |
||
| 23 | */ |
||
| 24 | private $progressBar; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param OutputInterface $output The console output. |
||
| 28 | */ |
||
| 29 | public function __construct(OutputInterface $output) |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param AfterAnalysisEvent $event The event triggered when the analysis is done. |
||
| 36 | */ |
||
| 37 | #[\Override] |
||
| 38 | public function onAfterAnalysis(AfterAnalysisEvent $event): void |
||
| 39 | { |
||
| 40 | $this->progressBar->finish(); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param BeforeAnalysisEvent $event The event triggered when the analysis starts. |
||
| 45 | */ |
||
| 46 | #[\Override] |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param AfterFileAnalysisEvent $event The event triggered when the analysis of a file is done. |
||
| 54 | */ |
||
| 55 | #[\Override] |
||
| 59 | } |
||
| 60 | } |
||
| 61 |