/** * @internal */ public static function includeStacktraces(HandlerInterface $handler) { $formatter = $handler->getFormatter(); if ($formatter instanceof LineFormatter || $formatter instanceof JsonFormatter) { $formatter->includeStacktraces(); } }
/** * {@inheritdoc} */ public function getFormatter() : FormatterInterface { if ($this->handler instanceof FormattableHandlerInterface) { return $this->handler->getFormatter($formatter); } throw new \LogicException('The wrapped handler does not implement ' . FormattableHandlerInterface::class); }
/** * {@inheritdoc} */ public function getFormatter() { return $this->handler->getFormatter(); }
/** * @override * @inheritDoc */ public function getFormatter() { return $this->model->getFormatter(); }
public function getFormatter() { return $this->delegate->getFormatter(); }