diff options
author | Jordi Boggiano <j.boggiano@seld.be> | 2015-10-09 20:41:09 +0100 |
---|---|---|
committer | Jordi Boggiano <j.boggiano@seld.be> | 2015-12-18 17:48:40 +0000 |
commit | 902c0c86944c0457317523e164c10a4f45c9f52e (patch) | |
tree | b74c22e9b7f394a747529ec99a1ceeb1dbddf44e /src/Monolog/Handler/ProcessableHandlerInterface.php | |
parent | 39f8a20e6dadc0194e846b254c5f23d1c732290b (diff) | |
download | monolog-902c0c86944c0457317523e164c10a4f45c9f52e.zip monolog-902c0c86944c0457317523e164c10a4f45c9f52e.tar.gz monolog-902c0c86944c0457317523e164c10a4f45c9f52e.tar.bz2 |
Split interfaces and base/abstract classes into more sensible pieces
Diffstat (limited to 'src/Monolog/Handler/ProcessableHandlerInterface.php')
-rw-r--r-- | src/Monolog/Handler/ProcessableHandlerInterface.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/Monolog/Handler/ProcessableHandlerInterface.php b/src/Monolog/Handler/ProcessableHandlerInterface.php new file mode 100644 index 0000000..769c28b --- /dev/null +++ b/src/Monolog/Handler/ProcessableHandlerInterface.php @@ -0,0 +1,35 @@ +<?php + +/* + * This file is part of the Monolog package. + * + * (c) Jordi Boggiano <j.boggiano@seld.be> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +/** + * Interface to describe loggers that have processors + * + * @author Jordi Boggiano <j.boggiano@seld.be> + */ +interface ProcessableHandlerInterface +{ + /** + * Adds a processor in the stack. + * + * @param callable $callback + * @return self + */ + public function pushProcessor(callable $callback); + + /** + * Removes the processor on top of the stack and returns it. + * + * @return callable + */ + public function popProcessor(); +} |