1 | <?php |
||
21 | class Export extends PresetOutput |
||
22 | { |
||
23 | /** |
||
24 | * @var ExportOutput |
||
25 | */ |
||
26 | protected $output; |
||
27 | |||
28 | /** |
||
29 | * @var int |
||
30 | */ |
||
31 | private $max = 0; |
||
32 | |||
33 | /** |
||
34 | * @var int |
||
35 | */ |
||
36 | private $current = 0; |
||
37 | |||
38 | /** |
||
39 | * @param ProgressHelper $progress |
||
40 | * @param OutputInterface $output |
||
41 | * @param string $filename |
||
42 | */ |
||
43 | 1 | public function __construct(ProgressHelper $progress, OutputInterface $output, $filename) |
|
52 | |||
53 | /** |
||
54 | * Starts the progress output. |
||
55 | * |
||
56 | * @param int|null $max Maximum steps |
||
57 | */ |
||
58 | public function start($max = null) |
||
63 | |||
64 | /** |
||
65 | * Advances the progress output X steps. |
||
66 | * |
||
67 | * @param int $step Number of steps to advance |
||
68 | * @param bool $redraw Whether to redraw or not |
||
69 | * |
||
70 | * @throws \LogicException |
||
71 | */ |
||
72 | public function advance($step = 1, $redraw = false) |
||
84 | |||
85 | 1 | public function __destruct() |
|
91 | } |
||
92 |