- Full name:
\App\Infrastructure\Persistence\Repository\EventSourcedProductRepository - This class implements:
\App\Domain\Product\Repository\ProductAggregateRepository
Properties
eventStore
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}
Parameters:
| Parameter | Type | Description |
|---|---|---|
$aggregate |
\Codefy\Domain\Aggregate\RecordsEvents |