Zend\ProgressBar\ProgressBar
Zend\ProgressBar offers an interface for multiple environments.
Synopsis
class ProgressBar
{
- // members
- protected float $min;
- protected float $max;
- protected float $current;
- protected int $startTime;
- protected string $statusText;
- protected AbstractAdapter $adapter;
- protected string $persistenceNamespace;
- // methods
- public void __construct()
- public AbstractAdapter getAdapter()
- public void update()
- public void next()
- public void finish()
Members
protected
- $adapter
—
\Zend\ProgressBar\Adapter\AbstractAdapter
Adapter for the output - $current
—
float
Current value - $max
—
float
Max value - $min
—
float
Min value - $persistenceNamespace
—
string
Namespace for keeping the progressbar persistent - $startTime
—
int
Start time of the progressbar, required for ETA - $statusText
—
string
Current status text
Methods
public
- __construct() — Create a new progressbar backend.
- finish() — Call the adapters finish() behaviour
- getAdapter() — Get the current adapter
- next() — Update the progressbar to the next value
- update() — Update the progressbar