function ProgressBar::setMessage
Associates a text with a named placeholder.
The text is displayed when the progress bar is rendered but only when the corresponding placeholder is part of the custom format line (by wrapping the name with %).
Parameters
string $message The text to associate with the placeholder:
string $name The name of the placeholder:
File
-
vendor/
symfony/ console/ Helper/ ProgressBar.php, line 181
Class
- ProgressBar
- The ProgressBar provides helpers to display progress output.
Namespace
Symfony\Component\Console\HelperCode
public function setMessage(string $message, string $name = 'message') : void {
$this->messages[$name] = $message;
}