original_string: public function toDomainEvents(): DomainEvents {
          return DomainEvents::make($this->map(function (StreamEvent $streamEvent) {
              return $streamEvent->event();
          })->toArray());
      }
code: public function toDomainEvents(): DomainEvents {
          return DomainEvents::make($this->map(function (StreamEvent $streamEvent) {
              return $streamEvent->event();
          })->toArray());
      }
code_tokens: public function toDomainEvents ( ) : DomainEvents { return DomainEvents :: make ( $ this -> map ( function ( StreamEvent $ streamEvent ) { return $ streamEvent -> event ( ) ; } ) -> toArray ( ) ) ; }
docstring: return a DomainEvents collection containing the domain
  events from within this stream events collection
  
  @return DomainEvents
docstring_tokens: return a DomainEvents collection containing the domain events from within this stream events collection