src/Domain/AggregateRoot/EventSourcedAggregateRoot.php
final public function commitChanges()
    {
        if (null !== $this->changes) {
            $this->lastCommittedEventSequenceNumber = $this->changes->lastSequenceNumber();
            $this->changes->commit();
        }
    }
final public function commitChanges()
    {
        if (null !== $this->changes) {
            $this->lastCommittedEventSequenceNumber = $this->changes->lastSequenceNumber();
            $this->changes->commit();
        }
    }
final public function commitChanges ( ) { if ( null !== $ this -> changes ) { $ this -> lastCommittedEventSequenceNumber = $ this -> changes -> lastSequenceNumber ( ) ; $ this -> changes -> commit ( ) ; } }
Clears all recorded events.
Clears all recorded events .