Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class ProgressBarHelper implements ProgressBarHelperInterface |
||
14 | { |
||
15 | /** @var \Symfony\Component\Console\Helper\ProgressBar */ |
||
16 | protected $progressBar; |
||
17 | |||
18 | /** |
||
19 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
20 | * @param string $resourceType |
||
21 | * @param int $totalCount |
||
22 | * |
||
23 | * @return \Symfony\Component\Console\Helper\ProgressBar |
||
24 | */ |
||
25 | public function startProgressBar( |
||
26 | OutputInterface $output, |
||
27 | $resourceType, |
||
28 | $totalCount |
||
29 | ) { |
||
30 | $this->progressBar = $this->generateProgressBar($output, $totalCount, $resourceType); |
||
31 | $this->progressBar->start(); |
||
32 | $this->progressBar->advance(0); |
||
33 | |||
34 | return $this->progressBar; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
39 | * @param int $count |
||
40 | * @param string $resourceType |
||
41 | * |
||
42 | * @return \Symfony\Component\Console\Helper\ProgressBar |
||
43 | */ |
||
44 | protected function generateProgressBar(OutputInterface $output, $count, $resourceType) |
||
48 | } |
||
49 | } |
||
50 |