code: public function replayStreamEvents($anEventSourcedAggregateRoot, Iterator $events): void
      {
          if (null === $this->replayStreamEvents) {
              $this->replayStreamEvents = function ($events): void {
                  $this->replay($events);
              };
          }
          $this->replayStreamEvents->call($anEventSourcedAggregateRoot, $events);
      }
docs: @param object $anEventSourcedAggregateRoot
  @param Iterator $events
  
  @return void