1 | <?php |
||
7 | class ProgressBar |
||
8 | { |
||
9 | private $progressBar; |
||
10 | |||
11 | private $width; |
||
12 | private $format; |
||
13 | |||
14 | private $max = 0; |
||
15 | private $output; |
||
16 | |||
17 | private $isStarted = false; |
||
18 | |||
19 | public function init(OutputInterface $_output, $width = 100, $format = 'normal', $max = 0) |
||
26 | |||
27 | public function setMax($max) |
||
31 | |||
32 | /** |
||
33 | * @Event("Scanner.Scan.Begin") |
||
34 | */ |
||
35 | public function start() |
||
45 | |||
46 | /** |
||
47 | * @Event("Scanner.Scan.Finish") |
||
48 | */ |
||
49 | public function finish() |
||
53 | |||
54 | /** |
||
55 | * @Event("Scanner.Scan.Validate") |
||
56 | */ |
||
57 | public function advance() |
||
61 | } |
||
62 |