function ProgressBar::finish
Finishes the progress output.
1 call to ProgressBar::finish()
- ProgressBar::iterate in vendor/
symfony/ console/ Helper/ ProgressBar.php - Returns an iterator that will automatically update the progress bar when iterated.
File
-
vendor/
symfony/ console/ Helper/ ProgressBar.php, line 438
Class
- ProgressBar
- The ProgressBar provides helpers to display progress output.
Namespace
Symfony\Component\Console\HelperCode
public function finish() : void {
if (null === $this->max) {
$this->max = $this->step;
}
if (($this->step === $this->max || null === $this->max) && !$this->overwrite) {
// prevent double 100% output
return;
}
$this->setProgress($this->max ?? $this->step);
}