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