class TextFormatter extends AbstractFormatter (View source)

Properties

protected ErrorList $error

The error list to be formatted.

from  AbstractFormatter

Methods

__construct(ErrorList $error)

Initialize the instance.

string
render()

Render the error list.

string
getText()

Build an plain text string describing the errors.

Details

__construct(ErrorList $error)

Initialize the instance.

Parameters

ErrorList $error

the error list to be formatted

string render()

Render the error list.

Return Value

string

See also

FormatterInterface::render

string getText()

Build an plain text string describing the errors.

Return Value

string