Interface Symfony\Component\Console\Formatter\OutputFormatterStyleInterface

Implemented bySymfony\Component\Console\Formatter\OutputFormatterStyle

Formatter style interface for defining styles.

Method Details

apply() public abstract method

Applies the style to a given text.

public abstract string apply ( $text )
$text string

The text to style

setBackground() public abstract method

Sets style background color.

public abstract void setBackground ( $color null )
$color string

The color name

setForeground() public abstract method

Sets style foreground color.

public abstract void setForeground ( $color null )
$color string

The color name

setOption() public abstract method

Sets some specific style option.

public abstract void setOption ( $option )
$option string

The option name

setOptions() public abstract method

Sets multiple style options at once.

public abstract void setOptions ( array $options )
$options array
unsetOption() public abstract method

Unsets some specific style option.

public abstract void unsetOption ( $option )
$option string

The option name