Elgg  Version 6.1
Progressing.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Traits\Cli;
4 
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 }
setProgressBar(ProgressBar $progress)
Set progress bar helper.
Definition: Progressing.php:26
$step
Definition: time.php:40
advance(int $step=1)
Advance progressbar.
Definition: Progressing.php:36