Skip to content

AggregateRoot

Entities that are an aggregate root.

Inherited methods

aggregateId

Returns unique aggregate id.

public aggregateId(): \Codefy\Domain\Aggregate\AggregateId

hasRecordedEvents

Determine whether the object's state has changed since the last clearRecordedEvent();

public hasRecordedEvents(): bool

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.

public getRecordedEvents(): \Codefy\Domain\EventSourcing\DomainEvents

clearRecordedEvents

Clears the record of new Domain Events. This doesn't clear the history of the object.

public clearRecordedEvents(): void


Automatically generated on 2025-10-13