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

@return void