You are here

private function ProgressBar::setMaxSteps in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Helper/ProgressBar.php \Symfony\Component\Console\Helper\ProgressBar::setMaxSteps()

Sets the progress bar maximal steps.

Parameters

int $max The progress bar max steps:

2 calls to ProgressBar::setMaxSteps()
ProgressBar::start in vendor/symfony/console/Helper/ProgressBar.php
Starts the progress output.
ProgressBar::__construct in vendor/symfony/console/Helper/ProgressBar.php
Constructor.

File

vendor/symfony/console/Helper/ProgressBar.php, line 504

Class

ProgressBar
The ProgressBar provides helpers to display progress output.

Namespace

Symfony\Component\Console\Helper

Code

private function setMaxSteps($max) {
  $this->max = max(0, (int) $max);
  $this->stepWidth = $this->max ? Helper::strlen($this->max) : 4;
}