| 1 | <?php |
||
| 8 | class DebugOnlyHandler implements HandlerInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var HandlerInterface |
||
| 12 | */ |
||
| 13 | private $handler; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var bool |
||
| 17 | */ |
||
| 18 | private $debug; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param HandlerInterface $handler |
||
| 22 | * @param bool $debug |
||
| 23 | */ |
||
| 24 | public function __construct(HandlerInterface $handler, $debug) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | public function isHandling(array $record) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function handle(array $record) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | public function handleBatch(array $records) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * {@inheritdoc} |
||
| 68 | */ |
||
| 69 | public function pushProcessor($callback) |
||
| 75 | |||
| 76 | /** |
||
| 77 | * {@inheritdoc} |
||
| 78 | */ |
||
| 79 | public function popProcessor() |
||
| 83 | |||
| 84 | /** |
||
| 85 | * {@inheritdoc} |
||
| 86 | */ |
||
| 87 | public function setFormatter(FormatterInterface $formatter) |
||
| 93 | |||
| 94 | /** |
||
| 95 | * {@inheritdoc} |
||
| 96 | */ |
||
| 97 | public function getFormatter() |
||
| 101 | } |
||
| 102 |