- author Kevin Bond
CloneableInstantiable
Methods |
public __construct(Symfony
|
public advance() : void Advances the indicator. |
public finish(string $message) : void Finish the indicator with message.
|
public static getFormatDefinition(string $name) : ?string Gets the format for a given name. |
public static getPlaceholderFormatterDefinition(string $name) : ?callable Gets the placeholder formatter for a given name (including the delimiter char like %). |
public setMessage(?string $message) : void Sets the current indicator message. |
public static setPlaceholderFormatterDefinition(string $name, callable $callable) : void Sets a placeholder formatter for a given name. This method also allow you to override an existing placeholder. |
public start(string $message) : void Starts the indicator output. |
Constants |
private Symfony |
Properties |
private bool $finished = false |
private string $finishedIndicatorValue |
private ?string $format = NULL |
private static array $formatters
|
private int $indicatorChangeInterval |
private int $indicatorCurrent |
private float $indicatorUpdateTime |
private array $indicatorValues |
private ?string $message = NULL |
private Symfony |
private bool $started = false |
private int $startTime |
Methods |
private determineBestFormat() : string |
private display() : void |
private getCurrentTimeInMilliseconds() : float |
private static initPlaceholderFormatters() : array
|
private overwrite(string $message) : void Overwrites a previous message to the output. |
Properties |
private static array $formatters
|
Methods |
public static getFormatDefinition(string $name) : ?string Gets the format for a given name. |
public static getPlaceholderFormatterDefinition(string $name) : ?callable Gets the placeholder formatter for a given name (including the delimiter char like %). |
private static initPlaceholderFormatters() : array
|
public static setPlaceholderFormatterDefinition(string $name, callable $callable) : void Sets a placeholder formatter for a given name. This method also allow you to override an existing placeholder. |