src/Domain/Model/EventCollection.php
public function commit(): void
    {
        $this->committedSequence = $this->lastSequence();
        $this->eventRecords = SortedSet::comparable(EventRecord::class);
    }
public function commit(): void
    {
        $this->committedSequence = $this->lastSequence();
        $this->eventRecords = SortedSet::comparable(EventRecord::class);
    }
public function commit ( ) : void { $ this -> committedSequence = $ this -> lastSequence ( ) ; $ this -> eventRecords = SortedSet :: comparable ( EventRecord :: class ) ; }
Clears events and updates committed sequence number

@return void
Clears events and updates committed sequence number