Properties

eventStore

protected \Codefy\Domain\EventSourcing\TransactionalEventStore $eventStore

projection

protected \App\Domain\Product\Service\ProductProjection $projection

Methods

__construct

public __construct(\Codefy\Domain\EventSourcing\TransactionalEventStore $eventStore, \App\Domain\Product\Service\ProductProjection $projection): mixed

Parameters:

Parameter Type Description
$eventStore \Codefy\Domain\EventSourcing\TransactionalEventStore
$projection \App\Domain\Product\Service\ProductProjection

Inherited methods

loadAggregateRoot

{@inheritDoc}

public loadAggregateRoot(\Codefy\Domain\Aggregate\AggregateId $aggregateId): \Codefy\Domain\Aggregate\RecordsEvents

Parameters:

Parameter Type Description
$aggregateId \Codefy\Domain\Aggregate\AggregateId

Throws:


saveAggregateRoot

{@inheritDoc}

public saveAggregateRoot(\Codefy\Domain\Aggregate\RecordsEvents $aggregate): void

Parameters:

Parameter Type Description
$aggregate \Codefy\Domain\Aggregate\RecordsEvents