SymfonyComponentConsoleFormatterOutputFormatterStyleInterface

Formatter style interface for defining styles.

Summary

No protected methods found
N/A
No private methods found
N/A

Methods

setForeground()

setForeground(string  $color = null) 

Sets style foreground color.

Parameters

string $color

color name

Tags

api

setBackground()

setBackground(string  $color = null) 

Sets style background color.

Parameters

string $color

color name

Tags

api

setOption()

setOption(string  $option) 

Sets some specific style option.

Parameters

string $option

option name

Tags

api

unsetOption()

unsetOption(string  $option) 

Unsets some specific style option.

Parameters

string $option

option name

Tags

None found

setOptions()

setOptions(array  $options) 

Sets multiple style options at once.

Parameters

array $options

Tags

None found

apply()

apply(string  $text) : string

Applies the style to a given text.

Parameters

string $text

The text to style

Returns

string

Tags

None found