Elgg  Version 3.0
Progressing.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Cli;
4 
6 
10 trait Progressing {
11 
15  protected $progress;
16 
24  public function setProgressBar(ProgressBar $progress) {
25  $this->progress = $progress;
26  }
27 
34  public function advance($step = 1) {
35  if ($this->progress) {
36  $this->progress->advance($step);
37  }
38  }
39 }
setProgressBar(ProgressBar $progress)
Set progress bar helper.
Definition: Progressing.php:24
$step
Definition: time.php:39
advance($step=1)
Advance progressbar.
Definition: Progressing.php:34