original_string: public function process(EventRecord $eventRecord): void
      {
          $this->eventStore->append($eventRecord);
          $this->eventDispatcher->dispatch($eventRecord->eventMessage());
      }
code: public function process(EventRecord $eventRecord): void
      {
          $this->eventStore->append($eventRecord);
          $this->eventDispatcher->dispatch($eventRecord->eventMessage());
      }
code_tokens: public function process ( EventRecord $ eventRecord ) : void { $ this -> eventStore -> append ( $ eventRecord ) ; $ this -> eventDispatcher -> dispatch ( $ eventRecord -> eventMessage ( ) ) ; }
docstring: Processes an event record
  
  Only dispatches an event if the event store does not throw an exception.
  
  @param EventRecord $eventRecord The event record
  
  @return void
  
  @throws Throwable When an error occurs
docstring_tokens: Processes an event record