summaryrefslogtreecommitdiffstats
path: root/src/Monolog/Handler/ProcessableHandlerInterface.php
diff options
context:
space:
mode:
authorJordi Boggiano <j.boggiano@seld.be>2015-10-09 20:41:09 +0100
committerJordi Boggiano <j.boggiano@seld.be>2015-12-18 17:48:40 +0000
commit902c0c86944c0457317523e164c10a4f45c9f52e (patch)
treeb74c22e9b7f394a747529ec99a1ceeb1dbddf44e /src/Monolog/Handler/ProcessableHandlerInterface.php
parent39f8a20e6dadc0194e846b254c5f23d1c732290b (diff)
downloadmonolog-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.php35
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();
+}