PHP 클래스 Prooph\EventSourcing\EventStoreIntegration\AggregateRootDecorator

저자: Alexander Miertsch ([email protected])
상속: extends Prooph\EventSourcing\AggregateRoot
파일 보기 프로젝트 열기: prooph/event-sourcing 1 사용 예제들

공개 메소드들

메소드 설명
extractAggregateId ( AggregateRoot $anAggregateRoot ) : string
extractAggregateVersion ( AggregateRoot $anAggregateRoot ) : integer
extractRecordedEvents ( AggregateRoot $anAggregateRoot ) : AggregateChanged[]
fromHistory ( string $arClass, Iterator $aggregateChangedEvents ) : AggregateRoot
newInstance ( ) : static
replayStreamEvents ( AggregateRoot $aggregateRoot, Iterator $events )

보호된 메소드들

메소드 설명
aggregateId ( ) : string

메소드 상세

aggregateId() 보호된 메소드

protected aggregateId ( ) : string
리턴 string representation of the unique identifier of the aggregate root

extractAggregateId() 공개 메소드

public extractAggregateId ( AggregateRoot $anAggregateRoot ) : string
$anAggregateRoot Prooph\EventSourcing\AggregateRoot
리턴 string

extractAggregateVersion() 공개 메소드

public extractAggregateVersion ( AggregateRoot $anAggregateRoot ) : integer
$anAggregateRoot Prooph\EventSourcing\AggregateRoot
리턴 integer

extractRecordedEvents() 공개 메소드

public extractRecordedEvents ( AggregateRoot $anAggregateRoot ) : AggregateChanged[]
$anAggregateRoot Prooph\EventSourcing\AggregateRoot
리턴 Prooph\EventSourcing\AggregateChanged[]

fromHistory() 공개 메소드

public fromHistory ( string $arClass, Iterator $aggregateChangedEvents ) : AggregateRoot
$arClass string
$aggregateChangedEvents Iterator
리턴 Prooph\EventSourcing\AggregateRoot

newInstance() 공개 정적인 메소드

public static newInstance ( ) : static
리턴 static

replayStreamEvents() 공개 메소드

public replayStreamEvents ( AggregateRoot $aggregateRoot, Iterator $events )
$aggregateRoot Prooph\EventSourcing\AggregateRoot
$events Iterator