/**
  * Sets the event emitter for the implementing class to use.
  *
  * @see \Phergie\Irc\Bot\React\EventEmitterAwareInterface::setEventEmitter()
  * @param \Evenement\EventEmitterInterface $emitter
  */
 public function setEventEmitter(EventEmitterInterface $emitter)
 {
     parent::setEventEmitter($emitter);
     foreach ($this->getHooks() as $hook => $info) {
         if ($info['handler'] instanceof EventEmitterAwareInterface) {
             $info['handler']->setEventEmitter($emitter);
         }
     }
 }
 /**
  * Injects the event emitter into the adapter.
  *
  * @param \Evenement\EventEmitterInterface $emitter
  */
 public function setEventEmitter(EventEmitterInterface $emitter)
 {
     parent::setEventEmitter($emitter);
     $this->adapter->setEventEmitter($emitter);
 }
 /**
  * Tests setEventEmitter().
  */
 public function testSetEventEmitter()
 {
     $emitter = Phake::mock('\\Evenement\\EventEmitterInterface');
     $this->plugin->setEventEmitter($emitter);
     $this->assertSame($emitter, $this->plugin->getEventEmitter());
 }
 /**
  * Set Event Emitter Interface
  * @param EventEmitterInterface $emitter
  * @return null
  */
 public function setEventEmitter(EventEmitterInterface $emitter)
 {
     parent::setEventEmitter($emitter);
     foreach ($this->plugins as $plugin) {
         if (!$plugin instanceof EventEmitterAwareInterface) {
             continue;
         }
         $plugin->setEventEmitter($emitter);
     }
 }