RecordsEvents
An object that records the events that happened to it since the last time it was cleared, or since it was restored from persistence.
- Full name:
\Codefy\Domain\Aggregate\RecordsEvents
Methods
aggregateId
Returns unique aggregate id.
hasRecordedEvents
Determine whether the object's state has changed since the last clearRecordedEvent();
getRecordedEvents
Get all the Domain Events that were recorded since the last time it was cleared, or since it was restored from persistence. This does not include events that were recorded prior.
clearRecordedEvents
Clears the record of new Domain Events. This doesn't clear the history of the object.
Automatically generated on 2025-10-13