Elgg
Version master
engine
classes
Elgg
Traits
Cli
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
$step
Definition:
time.php:40
Elgg\Traits\Cli
Definition:
PluginsHelper.php:3
Elgg\Traits\Cli\setProgressBar
setProgressBar(ProgressBar $progress)
Set progress bar helper.
Definition:
Progressing.php:26
Elgg\Traits\Cli\Progressing
trait Progressing
Progress reporting.
Definition:
Progressing.php:12
Elgg\Traits\Cli\advance
advance(int $step=1)
Advance progressbar.
Definition:
Progressing.php:36
Generated on Thu Aug 14 2025 00:01:49 for Elgg by
1.9.1