Zend\ProgressBar offers an interface for multiple environments.

 Methods

Create a new progressbar backend.

__construct(\Zend\ProgressBar\Adapter\AbstractAdapter $adapter, float | int $min, float | int $max, string | null $persistenceNamespace) 

Parameters

$min

floatint

$max

floatint

$persistenceNamespace

stringnull

Exceptions

\Zend\ProgressBar\Exception\OutOfRangeException When $min is greater than $max

Call the adapters finish() behaviour

finish() : void

Update the progressbar

update(float $value, string $text) : void

Parameters

$value

float

$text

string

 Properties

 

Adapter for the output

$adapter : \Zend\ProgressBar\Adapter\AbstractAdapter

 

Current value

$current : float

 

Max value

$max : float

 

Min value

$min : float

 

Namespace for keeping the progressbar persistent

$persistenceNamespace : string

 

Start time of the progressbar, required for ETA

$startTime : int

 

Current status text

$statusText : string