class TrashBinProjection implements ProjectionInterface (View source)

internal  for communication within the Workspace UI only
 

Methods

__construct(Connection $dbal, string $tableNamePrefix)

No description

void
setUp()

No description

status()

Determines the setup status of the projection. E.g. are the database tables created or any columns missing.

void
resetState()

No description

void
apply(EventInterface $event, EventEnvelope $eventEnvelope)

No description

getState()

NOTE: The state will be accessed eagerly ONCE upon initialisation of the content repository and put into the immutable {ProjectionStates} collection.

Details

__construct(Connection $dbal, string $tableNamePrefix)

No description

Parameters

Connection $dbal
string $tableNamePrefix

void setUp()

No description

Return Value

void

Exceptions

Exception

ProjectionStatus status()

Determines the setup status of the projection. E.g. are the database tables created or any columns missing.

Return Value

ProjectionStatus

void resetState()

No description

Return Value

void

void apply(EventInterface $event, EventEnvelope $eventEnvelope)

No description

Parameters

EventInterface $event
EventEnvelope $eventEnvelope

Return Value

void

ProjectionStateInterface getState()

NOTE: The state will be accessed eagerly ONCE upon initialisation of the content repository and put into the immutable {ProjectionStates} collection.

This ensures always the same instance is being returned when accessing it.

Projections should on construction already have the state prepared, that also for internal use cases the SAME INSTANCE is always used.