original_string: public function dispatch(EventInterface $event)
      {
          if (array_key_exists($event->getName(), $this->listeners)) {
              foreach ($this->listeners[$event->getName()] as $listener) {
                  $listener($event);
              }
          }
  
          return $event;
      }
code: public function dispatch(EventInterface $event)
      {
          if (array_key_exists($event->getName(), $this->listeners)) {
              foreach ($this->listeners[$event->getName()] as $listener) {
                  $listener($event);
              }
          }
  
          return $event;
      }
code_tokens: public function dispatch ( EventInterface $ event ) { if ( array_key_exists ( $ event -> getName ( ) , $ this -> listeners ) ) { foreach ( $ this -> listeners [ $ event -> getName ( ) ] as $ listener ) { $ listener ( $ event ) ; } } return $ event ; }
docstring: Dispatch an event. Can be any event object which implements `PhpSchool\PhpWorkshop\Event\EventInterface`.
  
  @param EventInterface $event
  @return EventInterface
docstring_tokens: Dispatch an event . Can be any event object which implements PhpSchool \ PhpWorkshop \ Event \ EventInterface .