Skip to content

Commit

Permalink
Merge pull request #33 from Jeckel-Lab/feature/add-event-listener-con…
Browse files Browse the repository at this point in the history
…tract

Add EventListener contract
  • Loading branch information
jeckel committed Jan 20, 2022
2 parents 8bffa54 + e49d08a commit 12c2df2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Domain/Event/EventListener.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

/**
* @author: Julien Mercier-Rojas <julien@jeckel-lab.fr>
* Created at: 20/01/2022
*/

declare(strict_types=1);

namespace JeckelLab\Contract\Domain\Event;

interface EventListener
{
/**
* @return array<class-string<Event>>
* @psalm-mutation-free
*/
public static function getSubscribedEvents(): array;
}

0 comments on commit 12c2df2

Please sign in to comment.