function ProgressIndicator::advance
Advances the indicator.
File
-
vendor/
symfony/ console/ Helper/ ProgressIndicator.php, line 107
Class
- ProgressIndicator
- @author Kevin Bond <kevinbond@gmail.com>
Namespace
Symfony\Component\Console\HelperCode
public function advance() : void {
if (!$this->started) {
throw new LogicException('Progress indicator has not yet been started.');
}
if (!$this->output
->isDecorated()) {
return;
}
$currentTime = $this->getCurrentTimeInMilliseconds();
if ($currentTime < $this->indicatorUpdateTime) {
return;
}
$this->indicatorUpdateTime = $currentTime + $this->indicatorChangeInterval;
++$this->indicatorCurrent;
$this->display();
}