PHP Class Prooph\EventStore\Snapshot\Snapshot

Datei anzeigen Open project: prooph/event-store Class Usage Examples

Public Methods

Method Description
__construct ( AggregateType $aggregateType, string $aggregateId, object $aggregateRoot, integer $lastVersion, DateTimeImmutable $createdAt )
aggregateId ( ) : string
aggregateRoot ( ) : object
aggregateType ( ) : AggregateType
createdAt ( ) : DateTimeImmutable
lastVersion ( ) : integer

Method Details

__construct() public method

public __construct ( AggregateType $aggregateType, string $aggregateId, object $aggregateRoot, integer $lastVersion, DateTimeImmutable $createdAt )
$aggregateType Prooph\EventStore\Aggregate\AggregateType
$aggregateId string
$aggregateRoot object
$lastVersion integer
$createdAt DateTimeImmutable

aggregateId() public method

public aggregateId ( ) : string
return string

aggregateRoot() public method

public aggregateRoot ( ) : object
return object

aggregateType() public method

public aggregateType ( ) : AggregateType
return Prooph\EventStore\Aggregate\AggregateType

createdAt() public method

public createdAt ( ) : DateTimeImmutable
return DateTimeImmutable

lastVersion() public method

public lastVersion ( ) : integer
return integer