Skip to content
docsv0.12.0

InvocationStepRole

What a station is allowed to do to a call — orthogonal to which station it is. A `Guard` may refuse and nothing else; a `Transform` may rewrite arguments and never refuse; a `Branch` diverts to a different outcome without either. Keeping this apart from {@see InvocationStepKind} is what lets a reader ask "what can still stop this call" without knowing every station by name.

InvocationStepRole::cases()

public static function cases(): array

InvocationStepRole::from()

public static function from(string|int $value): static

Parameters

Parameters of from()
NameTypeDescription
$valuestring|int

InvocationStepRole::tryFrom()

public static function tryFrom(string|int $value): ?static

Parameters

Parameters of tryFrom()
NameTypeDescription
$valuestring|int