| Total Complexity | 3 | 
| Total Lines | 42 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 14 | class StandardFormatter implements FormatterInterface | ||
| 15 | { | ||
| 16 | const FORMAT = "[%datetime%] %level%: %message%\n%contextPlaceholder%"; | ||
| 17 | const CONTEXT_FORMAT = "Context:\n%context%\n"; | ||
| 18 | const DATETIME_FORMAT = 'Y-m-d H:i:s.u'; | ||
| 19 | |||
| 20 | /** | ||
| 21 | * @var DumperInterface | ||
| 22 | */ | ||
| 23 | protected $dumper; | ||
| 24 | |||
| 25 | public function __construct(DumperInterface $dumper) | ||
| 26 |     { | ||
| 27 | $this->dumper = $dumper; | ||
| 28 | } | ||
| 29 | |||
| 30 | public function format(Record $record) | ||
| 56 | } | ||
| 57 | } | ||
| 58 |