1: <?php
2: namespace Peridot\WebDriverManager\Event;
3: use Evenement\EventEmitterInterface as BaseEmitterInterface;
4:
5: /**
6: * EventEmitterInterface provides a means to inherit events
7: * from existing event emitters.
8: *
9: * @package Peridot\WebDriverManager\Event
10: */
11: interface EventEmitterInterface extends BaseEmitterInterface
12: {
13: /**
14: * Inherit event listeners from another event emitter.
15: *
16: * @param array $events an array of event names
17: * @param BaseEmitterInterface $emitter
18: * @return void
19: */
20: public function inherit(array $events, BaseEmitterInterface $emitter);
21: }
22: