PHP Class Prooph\EventStore\Snapshot\Snapshot

Afficher le fichier Open project: prooph/event-store Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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 méthode

public aggregateId ( ) : string
Résultat string

aggregateRoot() public méthode

public aggregateRoot ( ) : object
Résultat object

aggregateType() public méthode

public aggregateType ( ) : AggregateType
Résultat Prooph\EventStore\Aggregate\AggregateType

createdAt() public méthode

public createdAt ( ) : DateTimeImmutable
Résultat DateTimeImmutable

lastVersion() public méthode

public lastVersion ( ) : integer
Résultat integer