FormattableHandlerTrait
Helper trait for implementing FormattableInterface
Tags
Table of Contents
- $formatter : FormatterInterface|null
- getFormatter() : FormatterInterface
- {@inheritDoc}
- setFormatter() : HandlerInterface
- {@inheritDoc}
- getDefaultFormatter() : FormatterInterface
- Gets the default formatter.
Properties
$formatter
protected
FormatterInterface|null
$formatter
Methods
getFormatter()
{@inheritDoc}
public
getFormatter() : FormatterInterface
Return values
FormatterInterface —setFormatter()
{@inheritDoc}
public
setFormatter(FormatterInterface $formatter) : HandlerInterface
Parameters
- $formatter : FormatterInterface
Return values
HandlerInterface —getDefaultFormatter()
Gets the default formatter.
protected
getDefaultFormatter() : FormatterInterface
Overwrite this if the LineFormatter is not a good default for your handler.