src/Domain/AggregateRoot/EventSourcedAggregateRoot.php
final private function changes()
    {
        if (null === $this->changes) {
            $lastCommittedEventSequenceNumber = $this->lastCommittedEventSequenceNumber();

            $this->changes = new DefaultEventContainer($this->identifier(), $lastCommittedEventSequenceNumber);
        }

        return $this->changes;
    }
final private function changes()
    {
        if (null === $this->changes) {
            $lastCommittedEventSequenceNumber = $this->lastCommittedEventSequenceNumber();

            $this->changes = new DefaultEventContainer($this->identifier(), $lastCommittedEventSequenceNumber);
        }

        return $this->changes;
    }
final private function changes ( ) { if ( null === $ this -> changes ) { $ lastCommittedEventSequenceNumber = $ this -> lastCommittedEventSequenceNumber ( ) ; $ this -> changes = new DefaultEventContainer ( $ this -> identifier ( ) , $ lastCommittedEventSequenceNumber ) ; } return $ this -> changes ; }
Return the event container containing the uncommitted changes.
If there are no pending changes to be committed, a new event container
will be initialized.

@return EventContainer
Return the event container containing the uncommitted changes . If there are no pending changes to be committed a new event container will be initialized .