Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace MediaWiki\DomainEvent; |
4 | |
5 | /** |
6 | * Objects implementing DomainEventSubscriber represent a collection of |
7 | * related event listeners. |
8 | * |
9 | * @since 1.44 |
10 | * @unstable until 1.45, should become stable to extend |
11 | */ |
12 | interface DomainEventSubscriber { |
13 | |
14 | /** |
15 | * Registers listeners with the given $eventSource. |
16 | * |
17 | * @todo decide whether this should return a list of event types |
18 | */ |
19 | public function registerListeners( DomainEventSource $eventSource ): void; |
20 | |
21 | } |