summaryrefslogtreecommitdiffstats
path: root/vendor/evenement/evenement/src/EventEmitterInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/evenement/evenement/src/EventEmitterInterface.php')
-rw-r--r--vendor/evenement/evenement/src/EventEmitterInterface.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/evenement/evenement/src/EventEmitterInterface.php b/vendor/evenement/evenement/src/EventEmitterInterface.php
new file mode 100644
index 0000000..310631a
--- /dev/null
+++ b/vendor/evenement/evenement/src/EventEmitterInterface.php
@@ -0,0 +1,22 @@
+<?php declare(strict_types=1);
+
+/*
+ * This file is part of Evenement.
+ *
+ * (c) Igor Wiedler <igor@wiedler.ch>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Evenement;
+
+interface EventEmitterInterface
+{
+ public function on($event, callable $listener);
+ public function once($event, callable $listener);
+ public function removeListener($event, callable $listener);
+ public function removeAllListeners($event = null);
+ public function listeners($event = null);
+ public function emit($event, array $arguments = []);
+}