Skip to content
Corex

FlowRestMapper

Corex\Forms\Flow\FlowRestMapper · class · Forms layer

Stable Flow REST mapping port composed from separate input and presentation policies.

__construct(FlowRestInputMapper $input, FlowRestPresenter $presenter)

Section titled “__construct(FlowRestInputMapper $input, FlowRestPresenter $presenter)”

listFilters(WP_REST_Request $request): array

Section titled “listFilters(WP_REST_Request $request): array”

newFlow(array $input, int $actorId, DateTimeImmutable $now): NewFlowDraft

Section titled “newFlow(array $input, int $actorId, DateTimeImmutable $now): NewFlowDraft”

draftUpdate(int $flowId, array $input, int $actorId, DateTimeImmutable $now): FlowDraftUpdate

Section titled “draftUpdate(int $flowId, array $input, int $actorId, DateTimeImmutable $now): FlowDraftUpdate”

transition(int $flowId, array $input, int $actorId, DateTimeImmutable $now): FlowTransition

Section titled “transition(int $flowId, array $input, int $actorId, DateTimeImmutable $now): FlowTransition”

summary(Flow $flow, FlowVersion $version): array

Section titled “summary(Flow $flow, FlowVersion $version): array”

pipeline(SubmissionPipelineResult $pipeline): array

Section titled “pipeline(SubmissionPipelineResult $pipeline): array”