Lines
0.00%
0 / 3
Methods
0.00%
0 / 3
Classes
0.00%
0 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| setTotal | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| advance | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| 10 | final readonly class ProgressBarProgressReporter implements ProgressReporter | |
| 11 | { | |
| 12 | public function __construct( | |
| 13 | private ProgressBar $progressBar, | |
| 14 | ) { | |
| 15 | } | |
| 16 | ||
| 17 | public function setTotal(int $total): void | |
| 18 | { | |
| 19 | $this->progressBar->setMaxSteps($total); | |
| 20 | } | |
| 21 | ||
| 22 | public function advance(): void | |
| 23 | { | |
| 24 | $this->progressBar->advance(); | |
| 25 | } | |
| 26 | } |