original_string: public function queueEvent($event)
      {
          $this->queue->enqueue($event);
  
          $class = get_class($event);
          foreach ($this->synchronousEventMap->getListenersForEvent($class) as $listener)
          {
              $this->invokeListener($listener, $event);
          }
      }
code: public function queueEvent($event)
      {
          $this->queue->enqueue($event);
  
          $class = get_class($event);
          foreach ($this->synchronousEventMap->getListenersForEvent($class) as $listener)
          {
              $this->invokeListener($listener, $event);
          }
      }
code_tokens: public function queueEvent ( $ event ) { $ this -> queue -> enqueue ( $ event ) ; $ class = get_class ( $ event ) ; foreach ( $ this -> synchronousEventMap -> getListenersForEvent ( $ class ) as $ listener ) { $ this -> invokeListener ( $ listener , $ event ) ; } }
docstring: Enqueues an arbitrary event.
  
  @param mixed $event The event object to publish.
  @return void
docstring_tokens: Enqueues an arbitrary event .