OutputFormatterStyleInterface
interface OutputFormatterStyleInterface
Formatter style interface for defining styles.
Methods
setForeground(string $color = null)
Sets style foreground color.
setBackground(string $color = null)
Sets style background color.
setOption(string $option)
Sets some specific style option.
unsetOption(string $option)
Unsets some specific style option.
setOptions(array $options)
Sets multiple style options at once.
string
apply(string $text)
Applies the style to a given text.
Details
at line line 26
setForeground(string $color = null)
Sets style foreground color.
at line line 33
setBackground(string $color = null)
Sets style background color.
at line line 40
setOption(string $option)
Sets some specific style option.
at line line 47
unsetOption(string $option)
Unsets some specific style option.
at line line 54
setOptions(array $options)
Sets multiple style options at once.
at line line 63
string
apply(string $text)
Applies the style to a given text.