| 1 | <?php |
||
| 8 | abstract class EventProvider implements EventManagerAwareInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var EventManagerInterface |
||
| 12 | */ |
||
| 13 | protected $events; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Set the event manager instance used by this context |
||
| 17 | * |
||
| 18 | * @param EventManagerInterface $events |
||
| 19 | * @return mixed |
||
| 20 | */ |
||
| 21 | 2 | public function setEventManager(EventManagerInterface $events) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Retrieve the event manager |
||
| 32 | * |
||
| 33 | * Lazy-loads an EventManager instance if none registered. |
||
| 34 | * |
||
| 35 | * @return EventManagerInterface |
||
| 36 | */ |
||
| 37 | 2 | public function getEventManager() |
|
| 45 | } |
||
| 46 |