ProgressBar::setFormatDefinition()

static setFormatDefinition(string $name, string $format) Sets a format for a given name. This method also allow you to override an existing format. Parameters string $name The format name string $format A format string

ProgressBar::getProgressPercent()

float getProgressPercent() Gets the current progress bar percent. Return Value float The current progress bar percent

ProgressBar::getStartTime()

int getStartTime() Gets the progress bar start time. Return Value int The progress bar start time

ProgressBar::setBarCharacter()

setBarCharacter(string $char) Sets the bar character. Parameters string $char A character

ProgressBar::getProgressCharacter()

string getProgressCharacter() Gets the progress bar character. Return Value string A character

ProgressBar::setBarWidth()

setBarWidth(int $size) Sets the progress bar width. Parameters int $size The progress bar size

ProgressBar::getMessage()

getMessage($name = 'message') Parameters $name

ProgressBar::getProgress()

int getProgress() Gets the current step position. Return Value int The progress bar step

ProgressBar::getFormatDefinition()

static string|null getFormatDefinition(string $name) Gets the format for a given name. Parameters string $name The format name Return Value string|null A format string

ProgressBar::getPlaceholderFormatterDefinition()

static callable|null getPlaceholderFormatterDefinition(string $name) Gets the placeholder formatter for a given name. Parameters string $name The placeholder name (including the delimiter char like %) Return Value callable|null A PHP callable