Output style helpers.
- author Kevin Bond
AbstractInterface
| Methods |
| public abstract ask(string $question, ?string $default = NULL, ?callable $validator = NULL) : ?mixed Asks a question. |
| public abstract askHidden(string $question, ?callable $validator = NULL) : ?mixed Asks a question with the user input hidden. |
| public abstract caution(array|string $message) : void Formats a caution admonition. |
| public abstract choice(string $question, array $choices, ?mixed $default = NULL) : ?mixed Asks a choice question. |
| public abstract confirm(string $question, bool $default = true) : bool Asks for confirmation. |
| public abstract error(array|string $message) : void Formats an error result bar. |
| public abstract listing(array $elements) : void Formats a list. |
| public abstract newLine(int $count = 1) : void Add newline(s). |
| public abstract note(array|string $message) : void Formats a note admonition. |
| public abstract progressAdvance(int $step = 1) : void Advances the progress output X steps. |
| public abstract progressFinish() : void Finishes the progress output. |
| public abstract progressStart(int $max = 0) : void Starts the progress output. |
| public abstract section(string $message) : void Formats a section title. |
| public abstract success(array|string $message) : void Formats a success result bar. |
| public abstract table(array $headers, array $rows) : void Formats a table. |
| public abstract text(array|string $message) : void Formats informational text. |
| public abstract title(string $message) : void Formats a command title. |
| public abstract warning(array|string $message) : void Formats an warning result bar. |