NullOutputFormatterStyle
in package
implements
OutputFormatterStyleInterface
Tags
Interfaces, Classes and Traits
- OutputFormatterStyleInterface
- Formatter style interface for defining styles.
Table of Contents
- apply() : string
- Applies the style to a given text.
- setBackground() : void
- Sets style background color.
- setForeground() : void
- Sets style foreground color.
- setOption() : void
- Sets some specific style option.
- setOptions() : void
- Sets multiple style options at once.
- unsetOption() : void
- Unsets some specific style option.
Methods
apply()
Applies the style to a given text.
public
apply(string $text) : string
Parameters
- $text : string
Return values
string —setBackground()
Sets style background color.
public
setBackground([string $color = null ]) : void
Parameters
- $color : string = null
Return values
void —setForeground()
Sets style foreground color.
public
setForeground([string $color = null ]) : void
Parameters
- $color : string = null
Return values
void —setOption()
Sets some specific style option.
public
setOption(string $option) : void
Parameters
- $option : string
Return values
void —setOptions()
Sets multiple style options at once.
public
setOptions(array<string|int, mixed> $options) : void
Parameters
- $options : array<string|int, mixed>
Return values
void —unsetOption()
Unsets some specific style option.
public
unsetOption(string $option) : void
Parameters
- $option : string