2021-08-02 16:38:50 +08:00
|
|
|
<?php
|
|
|
|
|
|
2021-08-11 01:04:57 +08:00
|
|
|
namespace Kiri\Events;
|
2021-08-02 16:38:50 +08:00
|
|
|
|
2021-08-03 18:18:09 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
interface EventProviders
|
2021-08-02 16:38:50 +08:00
|
|
|
{
|
|
|
|
|
|
2021-08-03 18:18:09 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param object $event
|
|
|
|
|
* An event for which to return the relevant listeners.
|
|
|
|
|
* @return iterable<callable>
|
|
|
|
|
* An iterable (array, iterator, or generator) of callables. Each
|
|
|
|
|
* callable MUST be type-compatible with $event.
|
|
|
|
|
*/
|
|
|
|
|
public function getListenersForEvent(object $event): iterable;
|
|
|
|
|
|
2021-08-02 16:38:50 +08:00
|
|
|
}
|