Abstract class for Zend\ProgressBar Adapters

 Methods

Create a new adapter

__construct(array | \Traversable $options) 

$options may be either be an array or a Zend\Config object which specifies adapter related options.

Parameters

$options

array\Traversable

Called when the progress is explicitly finished

finish() : void

Notify the adapter about an update

notify(float $current, float $max, float $percent, int $timeTaken, int $timeRemaining, string $text) : void

Parameters

$current

float

Current progress value

$max

float

Max progress value

$percent

float

Current percent value

$timeTaken

int

Taken time in seconds

$timeRemaining

int

Remaining time in seconds

$text

string

Status text

Set options via an array

setOptions(array $options) : \Zend\ProgressBar\Adapter\AbstractAdapter

Parameters

$options

array

Returns

 Properties

 

Option keys to skip when calling setOptions()

$skipOptions : array