OutputFormatterInterface
OutputFormatterInterface
interface OutputFormatterInterface
Formatter interface for console output.
Methods
setDecorated(bool $decorated) Sets the decorated flag. | ||
bool | isDecorated() Gets the decorated flag. | |
setStyle(string $name, OutputFormatterStyleInterface $style) Sets a new style. | ||
bool | hasStyle(string $name) Checks if output formatter has style with specified name. | |
OutputFormatterStyleInterface | getStyle(string $name) Gets style options from style with specified name. | |
string | format(string $message) Formats a message according to the given styles. |
Details
setDecorated(bool $decorated)
Sets the decorated flag.
bool isDecorated()
Gets the decorated flag.
setStyle(string $name, OutputFormatterStyleInterface $style)
Sets a new style.
bool hasStyle(string $name)
Checks if output formatter has style with specified name.
OutputFormatterStyleInterface getStyle(string $name)
Gets style options from style with specified name.
string format(string $message)
Formats a message according to the given styles.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Console/Formatter/OutputFormatterInterface.html