Skip to content

Latest commit

 

History

History
179 lines (69 loc) · 1.74 KB

NullOutputFormatterStyle.md

File metadata and controls

179 lines (69 loc) · 1.74 KB

NullOutputFormatterStyle

Methods

apply

Applies the style to a given text.

public apply(string $text): string

Parameters:

Parameter Type Description
$text string

setBackground

Sets style background color.

public setBackground(string $color = null): void

Parameters:

Parameter Type Description
$color string

setForeground

Sets style foreground color.

public setForeground(string $color = null): void

Parameters:

Parameter Type Description
$color string

setOption

Sets some specific style option.

public setOption(string $option): void

Parameters:

Parameter Type Description
$option string

setOptions

Sets multiple style options at once.

public setOptions(array $options): void

Parameters:

Parameter Type Description
$options array

unsetOption

Unsets some specific style option.

public unsetOption(string $option): void

Parameters:

Parameter Type Description
$option string