Skip to content

Commit eb1f2f5

Browse files
committed
added listener interface
1 parent 70cf60c commit eb1f2f5

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)