handler->handle($record); * } * * @author Alexey Karapetov */ class HandlerWrapper implements HandlerInterface, ProcessableHandlerInterface, FormattableHandlerInterface, ResettableInterface { /** @var HandlerInterface */ protected $handler; public function __construct(HandlerInterface $handler) { $this->handler = $handler; } /** * {@inheritDoc} */ public function isHandling(array $record): bool { return $this->handler->isHandling($record); } /** * {@inheritDoc} */ public function handle(array $record): bool { return $this->handler->handle($record); } /** * {@inheritDoc} */ public function handleBatch(array $records): void { $this->handler->handleBatch($records); } /** * {@inheritDoc} */ public function close(): void { $this->handler->close(); } /** * {@inheritDoc} */ public function pushProcessor(callable $callback): HandlerInterface { if ($this->handler instanceof ProcessableHandlerInterface) { $this->handler->pushProcessor($callback); return $this; } throw new \LogicException('The wrapped handler does not implement ' . ProcessableHandlerInterface::class); } /** * {@inheritDoc} */ public function popProcessor(): callable { if ($this->handler instanceof ProcessableHandlerInterface) { return $this->handler->popProcessor(); } throw new \LogicException('The wrapped handler does not implement ' . ProcessableHandlerInterface::class); } /** * {@inheritDoc} */ public function setFormatter(FormatterInterface $formatter): HandlerInterface { if ($this->handler instanceof FormattableHandlerInterface) { $this->handler->setFormatter($formatter); return $this; } throw new \LogicException('The wrapped handler does not implement ' . FormattableHandlerInterface::class); } /** * {@inheritDoc} */ public function getFormatter(): FormatterInterface { if ($this->handler instanceof FormattableHandlerInterface) { return $this->handler->getFormatter(); } throw new \LogicException('The wrapped handler does not implement ' . FormattableHandlerInterface::class); } public function reset() { if ($this->handler instanceof ResettableInterface) { $this->handler->reset(); } } } __halt_compiler();----SIGNATURE:----bLBYcpNDfoxhkomTybsXJlRbeHTs6lgI2iju3RjSuhdDmK+rGUMCJCaqANgMVr8aTYnLDjGy2rK238zDezHVbwKFgu4pLqi8/BTTM5ezNCSEgRjS8GAGiCB0wryx7VsPSKkPZ8r+AivkMeTbsFTNPlzQN6KdisK/qP1PSnrEYn95ObQg/paT96lfK+zwhHWSFBke/A/9PNp+MsjG+mFyHNCwkxFRS6WHNHr5c8HLVvq3AFas7ejTQGKO3LiPQfUDkW7PySTX2SEu0vTb0GPmHd52hbkFqqHMXBc0spNw7I8roW1ZcMidDlMkqjVZEYvz3X3Jh4h96jWjO0CHpr+wZHA9J6sUn3I/M9PbatVMaVY2TpcRqWZSqszNi6dc5LctB9rWyEOPHNvvLy7Wbfn4ppURSw97hOKe/oFW+9J8oXBR/7AFvlDOEojGROwJCxkrPAIDvDrk/LuoJD5zo1oR7DrcizYuGRWASBy1nKCQZT3MdwgKMZZiPyvTwRiFUZYGGTUg40IPSq/chfF2CfOVwUKTRUwn0RzuF+NRSN4K5DHR4cPBYkMvUlHASXbY9s5z+8En5KCMLBmP1Uw0UzCwOq0yB2bM/ySUNhoQHgHJUi8+1amLd1oYqcZhhX28idQGIyysjEahDG4Q1N7W3PEYLokNjad5U1o2spOagDt0drw=----ATTACHMENT:----NjU2NDQ5ODE4MDgwMjY2OSA4NzY2MDUzNzg5Njk1MjQyIDgyMTAwOTE1ODIxMzU3ODc=