We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70cf60c commit eb1f2f5Copy full SHA for eb1f2f5
1 file changed
src/EventManager/ListenerInterface.php
@@ -0,0 +1,21 @@
1
+<?php declare(strict_types = 1);
2
+
3
+namespace Spameri\Elastic\EventManager;
4
5
+interface ListenerInterface
6
+{
7
8
+ public function handle(
9
+ object|null $entity,
10
+ object|null $parent,
11
+ ): void;
12
13
+ /**
14
+ * @return array<class-string>
15
+ */
16
+ public function getEntityClass(): array;
17
18
19
+ public function getEvent(): string;
20
21
+}
0 commit comments