Свойство | Тип | Описание | |
---|---|---|---|
$recordedEvents | List of events that are not committed to the EventStore | ||
$version | integer | Current version |
Метод | Описание | |
---|---|---|
__construct ( ) | We do not allow public access to __construct, this way we make sure that an aggregate root can only be constructed by static factories | |
aggregateId ( ) : string | ||
apply ( |
Apply given event | |
determineEventHandlerMethodFor ( |
Determine event name | |
popRecordedEvents ( ) : |
Get pending events and reset stack | |
reconstituteFromHistory ( Iterator $historyEvents ) : static | ||
recordThat ( |
Record an aggregate changed event | |
replay ( Iterator $historyEvents ) : void | Replay past events |
protected __construct ( ) |
abstract protected aggregateId ( ) : string | ||
Результат | string | representation of the unique identifier of the aggregate root |
protected apply ( |
||
$e |
protected determineEventHandlerMethodFor ( |
||
$e | ||
Результат | string |
protected popRecordedEvents ( ) : |
||
Результат |
protected static reconstituteFromHistory ( Iterator $historyEvents ) : static | ||
$historyEvents | Iterator | |
Результат | static |
protected recordThat ( |
||
$event |
protected AggregateChanged[],Prooph\EventSourcing $recordedEvents | ||
Результат |