Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class ProgressBarSubscriber implements AfterAnalysis, AfterFileAnalysis, BeforeAnalysis |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * @var ProgressBar |
||
24 | */ |
||
25 | private $progressBar; |
||
26 | |||
27 | /** |
||
28 | * @param OutputInterface $output The console output. |
||
29 | */ |
||
30 | public function __construct(OutputInterface $output) |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param AfterAnalysisEvent $event The event triggered when the analysis is done. |
||
37 | */ |
||
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 | public function onBeforeAnalysis(BeforeAnalysisEvent $event): void |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @param AfterFileAnalysisEvent $event The event triggered when the analysis of a file is done. |
||
53 | */ |
||
54 | public function onAfterFileAnalysis(AfterFileAnalysisEvent $event): void |
||
57 | } |
||
58 | } |
||
59 |