src/Domain/Model/AggregateRoot.php
public function extractRecordedEvents()
    {
        $eventCollection = $this->eventCollection();
        $eventStream = $eventCollection->stream();
        $eventCollection->commit();
        $this->committedVersion = $eventCollection->committedSequence();

        return $eventStream;
    }
public function extractRecordedEvents()
    {
        $eventCollection = $this->eventCollection();
        $eventStream = $eventCollection->stream();
        $eventCollection->commit();
        $this->committedVersion = $eventCollection->committedSequence();

        return $eventStream;
    }
public function extractRecordedEvents ( ) { $ eventCollection = $ this -> eventCollection ( ) ; $ eventStream = $ eventCollection -> stream ( ) ; $ eventCollection -> commit ( ) ; $ this -> committedVersion = $ eventCollection -> committedSequence ( ) ; return $ eventStream ; }
Removes and returns recorded events

@return Traversable|EventRecord[]
Removes and returns recorded events