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:----f3ChRHCr06j/XlVTiNv4EVb0MTrna6wWYKroKJZ9Hn7EpSMSvCbBHERSC8fFc5DFJ2kYobxqiNpTvrJCJN0LzHalnOZth3tuV2IfSu15xBPgb5H9L7E+J8lyOdUeZNpAZWUkMxlI/L3V9pQB8Jci/6TrWb24L/k9m+Dbrb3lpUni5wE+8KXAMIJ28EhwFUsO/yNaCSg1CQah4o8W7kzfu7LiKq4CzziG+uKmfO6tyAeE+z32e3SNSt2GBIv0eE9Oh8HhMfL/dLWsqh0TLQuz5dEMMfjXA8OJZm2jbTADSq4wi6+zUcQTgcJuBunWiNYvjhLFnmJet64PjEgUxB0BiL63PrkMgSnD0uZS1So1O0LeUw7KMDnAvajO8z/3bvhmHlBpmTQxAVH1qeeMWukzyuHHuqqx5596zYltpsmW9R26RJIJPbqH+riSkYREjTsjel0rRO1F6WXpYwTkr2lcbcUlc80lDIcvi/QgTjEYgYNM19L1cMrS74A2wtwt17z0JEqklfwU5rMXE54mzAayfeR9ZdajaiBGgPOfan7R1pv4U6Gp7W47lyufxfsnsMHVQ7Hcm6NEk8ct6+bYOtRUj8J7oudTeYLGdqBCy8x2vIlnrtPl/hMTlK75gO7NKoeDGfmTNFpjF9afV0x0Q10F6Awy29rqGk0M1EQJPAZqpt0=----ATTACHMENT:----MzI5MjY3OTA4MTIyMzkxMCA5MjE1MzA1OTUyMjQ3NDg1IDg5MTc5NjM5NjIwMTk5NDI=