class ProgressBar extends Alvine

ProgressBar

Properties

protected Terminal $terminal
protected string $start
protected string $end
protected string $progress
protected string $remaining
protected string $width
protected string $current
protected string $max
protected string $showNumber

Methods

__construct(Terminal $terminal, int $width = 20)

No description

enableNumber()

No description

disableNumber()

No description

write()

No description

init(int $max)

No description

set(int $current)

Aktuellen Wert setzen

increase()

Aktuellen Wert um eins hochzählen

decrease()

Aktuellen Wert um eins hochzählen

Details

at line 88
__construct(Terminal $terminal, int $width = 20)

Parameters

Terminal $terminal
int $width

at line 103
ProgressBar enableNumber()

Return Value

ProgressBar

at line 112
ProgressBar disableNumber()

Return Value

ProgressBar

at line 121
ProgressBar write()

Return Value

ProgressBar

at line 151
ProgressBar init(int $max)

Parameters

int $max

Return Value

ProgressBar

at line 163
ProgressBar set(int $current)

Aktuellen Wert setzen

Parameters

int $current

Return Value

ProgressBar

at line 176
ProgressBar increase()

Aktuellen Wert um eins hochzählen

Return Value

ProgressBar

at line 189
ProgressBar decrease()

Aktuellen Wert um eins hochzählen

Return Value

ProgressBar