ProgressIndicator
ProgressIndicator
class ProgressIndicator
Methods
__construct(OutputInterface $output, string|null $format = null, int $indicatorChangeInterval = 100, array|null $indicatorValues = null) | ||
setMessage(string|null $message) Sets the current indicator message. | ||
start($message) Starts the indicator output. | ||
advance() Advances the indicator. | ||
finish($message) Finish the indicator with message. | ||
static string|null | getFormatDefinition(string $name) Gets the format for a given name. | |
static | setPlaceholderFormatterDefinition(string $name, callable $callable) Sets a placeholder formatter for a given name. | |
static callable|null | getPlaceholderFormatterDefinition(string $name) Gets the placeholder formatter for a given name. |
Details
__construct(OutputInterface $output, string|null $format = null, int $indicatorChangeInterval = 100, array|null $indicatorValues = null)
setMessage(string|null $message)
Sets the current indicator message.
start($message)
Starts the indicator output.
advance()
Advances the indicator.
finish($message)
Finish the indicator with message.
static string|null getFormatDefinition(string $name)
Gets the format for a given name.
static 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.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Console/Helper/ProgressIndicator.html