| 1 | <?php |
||
| 10 | trait FormatterContainerTrait |
||
| 11 | { |
||
| 12 | /** @var FormatterInterface */ |
||
| 13 | protected $formatter; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @return FormatterInterface |
||
| 17 | */ |
||
| 18 | 12 | public function getFormatter() |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param FormatterInterface $formatter |
||
| 29 | */ |
||
| 30 | 16 | public function setFormatter(FormatterInterface $formatter) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @param Record $record |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | 10 | public function getFormattedMessage(Record $record) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return LineFormatter |
||
| 47 | */ |
||
| 48 | 1 | protected function getDefaultFormatter() |
|
| 52 | } |
||
| 53 |