You are here

public function ProgressHelper::advance in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Helper/ProgressHelper.php \Symfony\Component\Console\Helper\ProgressHelper::advance()

Advances the progress output X steps.

Parameters

int $step Number of steps to advance:

bool $redraw Whether to redraw or not:

Throws

\LogicException

File

vendor/symfony/console/Helper/ProgressHelper.php, line 241

Class

ProgressHelper
The Progress class provides helpers to display progress output.

Namespace

Symfony\Component\Console\Helper

Code

public function advance($step = 1, $redraw = false) {
  $this
    ->setCurrent($this->current + $step, $redraw);
}