interface OutputFormatterInterface
Formatter interface for console output.
Methods
|
setDecorated(Boolean $decorated)
Sets the decorated flag. |
||
| Boolean |
isDecorated()
Gets the decorated flag. |
|
|
setStyle(string $name, OutputFormatterStyleInterface $style)
Sets a new style. |
||
| Boolean |
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
at line 30
public
setDecorated(Boolean $decorated)
Sets the decorated flag.
at line 39
public Boolean
isDecorated()
Gets the decorated flag.
at line 49
public
setStyle(string $name, OutputFormatterStyleInterface $style)
Sets a new style.
at line 60
public Boolean
hasStyle(string $name)
Checks if output formatter has style with specified name.
at line 71
public OutputFormatterStyleInterface
getStyle(string $name)
Gets style options from style with specified name.
at line 82
public string
format(string $message)
Formats a message according to the given styles.