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:----EkRobUNjKJhjbPDviTBtXJRNBKwpSkCWp6b/rTkTMPNZ42IWcLbb0nXJz554rvH2l3mRfmCMt9fySkL3KdUO+Z5I56ua74K4S1oqSwbKld/zbGt7Yd2ouqUrV+vHiDWVihc6P39PZ5DXeee5RYel6sIATn5mgtXMOUuB0cmZs1mPBWYI2KLG9c0Ntq9m8CSQtBiB8EvjP1zdfS0Zlc2bpfCQ9eZiEfKNG6YNvL+VFcbcg9eIC+q1+Xj0sssxl367FnsNUKxBqO34eU+MyLf2zOXiAkMk98yDVBXWt4z6GuqpOLZnP/tXwsebJUkQ9EyJpV6bf7L1U2dujFWmP3gIHzG6rq8H/HXKT4m0SR0Z9TCskLz4t/xFYfF1fcVVIukCB+pS+CI8C6Wit5fmfgIjfECgT5Wae5qg5Uz2T8bTfXyDUAkgw3eOrPHUW0EDg2DxSWW2JHKMT6xCuz6/QKaQ/JhVhyjdkftpXZ5j9Rwr/z3yiEzCXmqeVhMTbNHQVAulpsZN+Ybl0HDppfwDudXJP922ZbL8fTo2Uk/ywMGiBB9/1qfSnbiMX35TKyzMCW5/lC2ViDCblzkglbcGo2BEuCT9qBWns2MnMHS3m/2rqzMp0XmPxGjcQhHPVocd+x1XYMG6DXhy1Z6wDsL5prWMWiXEQqItJ2LPrRiSik19WPU=----ATTACHMENT:----OTcyMjk4OTkwOTExMTA5IDc3MTMyNTA5ODg5MjY0NTYgMzY0MjE2Mjk2NzUwNQ==