Elgg  Version master
Progressing.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Traits\Cli;
4 
5 use Symfony\Component\Console\Helper\ProgressBar;
6 
12 trait Progressing {
13 
17  protected $progress;
18 
26  public function setProgressBar(ProgressBar $progress) {
27  $this->progress = $progress;
28  }
29 
36  public function advance(int $step = 1) {
37  $this->progress?->advance($step);
38  }
39 }
$step
Definition: time.php:40
setProgressBar(ProgressBar $progress)
Set progress bar helper.
Definition: Progressing.php:26
trait Progressing
Progress reporting.
Definition: Progressing.php:12
advance(int $step=1)
Advance progressbar.
Definition: Progressing.php:36