interface ColorProcessorInterface (View source)

Class ProcessorInterface.

Methods

string
process(string $output)

Process the provided output into a string.

addStyle(string $name, ColorStyle $style)

Add a style.

setNoColors(boolean $noColors)

Method to set property noColors

Details

at line line 27
string process(string $output)

Process the provided output into a string.

Parameters

string $output

Return Value

string

at line line 39
ColorProcessor addStyle(string $name, ColorStyle $style)

Add a style.

Parameters

string $name The style name.
ColorStyle $style The color style.

Return Value

ColorProcessor Instance of $this to allow chaining.

at line line 48
ColorProcessorInterface setNoColors(boolean $noColors)

Method to set property noColors

Parameters

boolean $noColors

Return Value

ColorProcessorInterface Return self to support chaining.