class FormStep

Properties

protected Closure $condition

Methods

__construct(Closure $step, bool|Closure $condition, string|null $name, bool $ignoreWhenReverting)

No description

mixed
run(array $responses, mixed $previousResponse)

Execute this step.

bool
shouldRun(array $responses)

Whether the step should run based on the given condition.

bool
shouldIgnoreWhenReverting(array $responses)

Whether this step should be skipped over when a subsequent step is reverted.

Details

at line 13
__construct(Closure $step, bool|Closure $condition, string|null $name, bool $ignoreWhenReverting)

No description

Parameters

Closure $step
bool|Closure $condition
string|null $name
bool $ignoreWhenReverting

at line 29
mixed run(array $responses, mixed $previousResponse)

Execute this step.

Parameters

array $responses
mixed $previousResponse

Return Value

mixed

at line 43
protected bool shouldRun(array $responses)

Whether the step should run based on the given condition.

Parameters

array $responses

Return Value

bool

at line 53
bool shouldIgnoreWhenReverting(array $responses)

Whether this step should be skipped over when a subsequent step is reverted.

Parameters

array $responses

Return Value

bool