final class FakeCatchUpHookFactory2 implements CatchUpHookFactoryInterface (View source)

internal  helper to configure custom catchup hook mocks for testing
 

Methods

build(CatchUpHookFactoryDependencies $dependencies)

Note that a catchup doesn't have access to the full content repository, as it would allow full recursion via handle and accessing other projections state is not safe as the other projection might not be behind - the order is undefined.

static void
setCatchupHook(ProjectionStateInterface $projectionState, CatchUpHookInterface $catchUpHook)

No description

Details

CatchUpHookInterface build(CatchUpHookFactoryDependencies $dependencies)

Note that a catchup doesn't have access to the full content repository, as it would allow full recursion via handle and accessing other projections state is not safe as the other projection might not be behind - the order is undefined.

Parameters

CatchUpHookFactoryDependencies $dependencies

available dependencies to intialise the catchup hook

Return Value

CatchUpHookInterface

static void setCatchupHook(ProjectionStateInterface $projectionState, CatchUpHookInterface $catchUpHook)

No description

Parameters

ProjectionStateInterface $projectionState
CatchUpHookInterface $catchUpHook

Return Value

void