JsonFormatter
class JsonFormatter extends AbstractFormatter (View source)
Properties
protected ErrorList | $error | The error list to be formatted. |
from AbstractFormatter |
Methods
Details
__construct(ErrorList $error)
Initialize the instance.
string
render()
Render the error list.
array|null
asArray()
Build an array describing the errors.