1 | <?php |
||
11 | class ProgressScanner |
||
12 | { |
||
13 | /** |
||
14 | * @var string[][] |
||
15 | */ |
||
16 | private $fileLists = []; |
||
17 | /** |
||
18 | * @var \PHPSemVerChecker\Scanner\Scanner[] |
||
19 | */ |
||
20 | private $scanners = []; |
||
21 | /** |
||
22 | * @var \Symfony\Component\Console\Output\OutputInterface |
||
23 | */ |
||
24 | private $output; |
||
25 | /** |
||
26 | * @var \Symfony\Component\Console\Helper\ProgressBar |
||
27 | */ |
||
28 | private $progressBar; |
||
29 | |||
30 | /** |
||
31 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
32 | */ |
||
33 | public function __construct(OutputInterface $output) |
||
37 | |||
38 | /** |
||
39 | * @param string $name |
||
40 | * @param string[] $fileList |
||
41 | * @param \PHPSemVerChecker\Scanner\Scanner $scanner |
||
42 | */ |
||
43 | public function addJob($name, $fileList, $scanner) |
||
48 | |||
49 | /** |
||
50 | * Run all registered jobs. |
||
51 | */ |
||
52 | public function runJobs() |
||
58 | |||
59 | /** |
||
60 | * Run a single job. |
||
61 | * |
||
62 | * @param string $jobName |
||
63 | */ |
||
64 | public function runJob($jobName) |
||
77 | |||
78 | /** |
||
79 | * @return int |
||
80 | */ |
||
81 | private function getFileCount() |
||
85 | |||
86 | /** |
||
87 | * @return \Symfony\Component\Console\Helper\ProgressBar |
||
88 | */ |
||
89 | private function getProgressBar() |
||
98 | } |