src/Domain/AggregateRoot/EventSourcedAggregateRoot.php
final private function replayChange(Event $event)
    {
        $this->apply($event->payload());
        $this->lastCommittedEventSequenceNumber = $event->sequenceNumber();
    }
final private function replayChange(Event $event)
    {
        $this->apply($event->payload());
        $this->lastCommittedEventSequenceNumber = $event->sequenceNumber();
    }
final private function replayChange ( Event $ event ) { $ this -> apply ( $ event -> payload ( ) ) ; $ this -> lastCommittedEventSequenceNumber = $ event -> sequenceNumber ( ) ; }
Mutate the state of the aggregate by applying the domain event contained into the message.
Synchronize the aggregate version with the one provided by the message.

@param Event $event
Mutate the state of the aggregate by applying the domain event contained into the message . Synchronize the aggregate version with the one provided by the message .