- Full name:
\App\Infrastructure\Persistence\Repository\EventSourcedContentRepository - This class implements:
\App\Domain\Content\Repository\ContentAggregateRepository
Properties
eventStore
projection
Methods
__construct
public __construct(\Codefy\Domain\EventSourcing\TransactionalEventStore $eventStore, \App\Domain\Content\Services\ContentProjection $projection): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$eventStore |
\Codefy\Domain\EventSourcing\TransactionalEventStore | |
$projection |
\App\Domain\Content\Services\ContentProjection |
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 |