This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Interface segregation here makes more sense
- Loading branch information
1 parent
327741e
commit a94294f
Showing
3 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace HelloFresh\Engine\EventDispatcher; | ||
|
||
/** | ||
* Base type for an event listener. | ||
*/ | ||
interface EventListenerInterface | ||
{ | ||
/** | ||
* Adds a listener to an event | ||
* @param string $eventName The event name | ||
* @param callable $callable The callable that will be called when the event happens | ||
*/ | ||
public function addListener($eventName, callable $callable); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters