Elgg  Version 4.3
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  if ($this->progress) {
38  $this->progress->advance($step);
39  }
40  }
41 }
setProgressBar(ProgressBar $progress)
Set progress bar helper.
Definition: Progressing.php:26
$step
Definition: time.php:41
advance(int $step=1)
Advance progressbar.
Definition: Progressing.php:36