original_string: public function getEventDispatcher()
      {
          if (null === $this->eventDispatcher) {
              $this->eventDispatcher = new Dispatcher\ResourceEventDispatcher();
              $this->eventDispatcher->setConfigurationRegistry($this->getConfigurationRegistry());
              $this->eventDispatcher->setEventQueue($this->getEventQueue());
          }
  
          return $this->eventDispatcher;
      }
code: public function getEventDispatcher()
      {
          if (null === $this->eventDispatcher) {
              $this->eventDispatcher = new Dispatcher\ResourceEventDispatcher();
              $this->eventDispatcher->setConfigurationRegistry($this->getConfigurationRegistry());
              $this->eventDispatcher->setEventQueue($this->getEventQueue());
          }
  
          return $this->eventDispatcher;
      }
code_tokens: public function getEventDispatcher ( ) { if ( null === $ this -> eventDispatcher ) { $ this -> eventDispatcher = new Dispatcher \ ResourceEventDispatcher ( ) ; $ this -> eventDispatcher -> setConfigurationRegistry ( $ this -> getConfigurationRegistry ( ) ) ; $ this -> eventDispatcher -> setEventQueue ( $ this -> getEventQueue ( ) ) ; } return $ this -> eventDispatcher ; }
docstring: Returns the event dispatcher.
  
  @return Dispatcher\ResourceEventDispatcher
docstring_tokens: Returns the event dispatcher .