OutputFormatterInterface
interface OutputFormatterInterface
Formatter interface for console output.
Methods
void
setDecorated(bool$decorated)
Sets the decorated flag.
bool
isDecorated()
Whether the output will decorate messages.
void
bool
hasStyle(string$name)
Checks if output formatter has style with specified name.
getStyle(string$name)
Gets style options from style with specified name.
string|null
format(string|null$message)
Formats a message according to the given styles.
Details
OutputFormatterStyleInterface
getStyle(string$name)
Gets style options from style with specified name.