KMP PHP API Reference

WaiversWorkflowActions
in package
uses WorkflowContextAwareTrait, LocatorAwareTrait

Workflow action implementations for waiver lifecycle operations.

Delegates state transitions to WaiverStateService to avoid duplicating business logic.

Table of Contents

Properties

$waiverService  : WaiverStateService

Methods

__construct()  : mixed
closeWaiverCollection()  : array<string|int, mixed>
Close a gathering's waiver collection.
declineWaiver()  : array<string|int, mixed>
Decline an individual gathering activity waiver.
markReadyToClose()  : array<string|int, mixed>
Mark gathering waiver collection as ready to close.
reopenWaiverCollection()  : array<string|int, mixed>
Reopen a closed waiver collection.
unmarkReadyToClose()  : array<string|int, mixed>
Remove ready-to-close status from a gathering.
resolveValue()  : mixed
Resolve a config value from context if it starts with '$.'.

Properties

Methods

closeWaiverCollection()

Close a gathering's waiver collection.

public closeWaiverCollection(array<string|int, mixed> $context, array<string|int, mixed> $config) : array<string|int, mixed>
Parameters
$context : array<string|int, mixed>

Current workflow context

$config : array<string|int, mixed>

Config with gatheringId, closedBy

Return values
array<string|int, mixed>

Output with success boolean

declineWaiver()

Decline an individual gathering activity waiver.

public declineWaiver(array<string|int, mixed> $context, array<string|int, mixed> $config) : array<string|int, mixed>
Parameters
$context : array<string|int, mixed>

Current workflow context

$config : array<string|int, mixed>

Config with waiverId, declineReason, declinedBy

Return values
array<string|int, mixed>

Output with success boolean

markReadyToClose()

Mark gathering waiver collection as ready to close.

public markReadyToClose(array<string|int, mixed> $context, array<string|int, mixed> $config) : array<string|int, mixed>
Parameters
$context : array<string|int, mixed>

Current workflow context

$config : array<string|int, mixed>

Config with gatheringId, markedBy

Return values
array<string|int, mixed>

Output with success boolean

reopenWaiverCollection()

Reopen a closed waiver collection.

public reopenWaiverCollection(array<string|int, mixed> $context, array<string|int, mixed> $config) : array<string|int, mixed>
Parameters
$context : array<string|int, mixed>

Current workflow context

$config : array<string|int, mixed>

Config with gatheringId

Return values
array<string|int, mixed>

Output with success boolean

unmarkReadyToClose()

Remove ready-to-close status from a gathering.

public unmarkReadyToClose(array<string|int, mixed> $context, array<string|int, mixed> $config) : array<string|int, mixed>
Parameters
$context : array<string|int, mixed>

Current workflow context

$config : array<string|int, mixed>

Config with gatheringId

Return values
array<string|int, mixed>

Output with success boolean

resolveValue()

Resolve a config value from context if it starts with '$.'.

protected resolveValue(mixed $value, array<string|int, mixed> $context) : mixed
Parameters
$value : mixed

Raw value or context path (e.g. '$.trigger.memberId')

$context : array<string|int, mixed>

Current workflow context

Return values
mixed

Resolved value

On this page

Search results