return $sequence;
}
public static function createAction(
string $action,
?Sequence $nextAction,
string $flowId,
string $sequenceId,
array $config = [],
?string $appFlowActionId = null
): ActionSequence {
$sequence = new ActionSequence();
$sequence->action = $action;
$sequence->config = $config;
$sequence->nextAction = $nextAction;
$sequence->flowId = $flowId;
$sequence->sequenceId = $sequenceId;
$sequence->appFlowActionId = $appFlowActionId;
return $sequence;
}
}