ProgressBar
class ProgressBar
The ProgressBar provides helpers to display progress output.
Methods
Sets a placeholder formatter for a given name.
Gets the placeholder formatter for a given name.
Sets a format for a given name.
Gets the format for a given name.
Associates a text with a named placeholder.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Sets the redraw frequency.
Starts the progress output.
Advances the progress output X steps.
Sets whether to overwrite the progressbar, false for new line.
No description
No description
Finishes the progress output.
Outputs the current progress string.
Removes the progress bar from the current line.
Details
static void
setPlaceholderFormatterDefinition(string $name, callable $callable)
Sets a placeholder formatter for a given name.
This method also allow you to override an existing placeholder.
static callable|null
getPlaceholderFormatterDefinition(string $name)
Gets the placeholder formatter for a given name.
static void
setFormatDefinition(string $name, string $format)
Sets a format for a given name.
This method also allow you to override an existing format.