Created
September 28, 2015 13:10
-
-
Save hannesvdvreken/ef9401604701ab69aaa0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
namespace League\Event; | |
interface ListenerInterface | |
{ | |
/** | |
* Handle an event. | |
* | |
* @param EventInterface $event | |
* | |
* @return void | |
*/ | |
public function handle(EventInterface $event); | |
/** | |
* Check whether the listener is the given parameter. | |
* | |
* @param mixed $listener | |
* | |
* @return bool | |
*/ | |
public function isListener($listener); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment