original_string: public function dispatch(DomainEvents $events) : void {
          $events->each(function (DomainEvent $event) {
              $this->listeners->each(function (Listener $listener) use ($event) {
                      $listener->handle($event);
              });
          });
      }
code: public function dispatch(DomainEvents $events) : void {
          $events->each(function (DomainEvent $event) {
              $this->listeners->each(function (Listener $listener) use ($event) {
                      $listener->handle($event);
              });
          });
      }
code_tokens: public function dispatch ( DomainEvents $ events ) : void { $ events -> each ( function ( DomainEvent $ event ) { $ this -> listeners -> each ( function ( Listener $ listener ) use ( $ event ) { $ listener -> handle ( $ event ) ; } ) ; } ) ; }
docstring: dispatch domain events to listeners
  
  @param DomainEvents $events
docstring_tokens: dispatch domain events to listeners