Cascade
extends Flow
in package
Backward-compatible inventory-oriented alias for Flow.
use Flow instead
Table of Contents
Methods
- __construct() : mixed
- create() : FlowStepBuilder
- Add a creation step from nil into matching destination slots.
- define() : static
- Build a flow fluently in one call.
- destroy() : FlowStepBuilder
- Add a destruction step from matching source slots into nil.
- move() : FlowStepBuilder
- Add a movement step from one slot pattern to another.
- name() : string
- Return the flow name.
- reverseIf() : static
- Conditionally reverse step order, optionally flipping edge direction too.
- stepByLabeledEdges() : FlowStepBuilder
- Add a step that resolves its candidate edges from one or more labeled edge rules.
- steps() : array<int, FlowStep>
- Return the compiled list of movement steps.
Methods
__construct()
public
__construct(string $name) : mixed
Parameters
- $name : string
create()
Add a creation step from nil into matching destination slots.
public
create(string|array<string|int, mixed>|null $to) : FlowStepBuilder
Parameters
- $to : string|array<string|int, mixed>|null
Tags
Return values
FlowStepBuilderdefine()
Build a flow fluently in one call.
public
static define(string $name, Closure $builder) : static
Parameters
- $name : string
- $builder : Closure
Return values
staticdestroy()
Add a destruction step from matching source slots into nil.
public
destroy(string|array<string|int, mixed>|null $from) : FlowStepBuilder
Parameters
- $from : string|array<string|int, mixed>|null
Tags
Return values
FlowStepBuildermove()
Add a movement step from one slot pattern to another.
public
move(string|array<string|int, mixed>|null $from, string|array<string|int, mixed>|null $to) : FlowStepBuilder
Parameters
- $from : string|array<string|int, mixed>|null
- $to : string|array<string|int, mixed>|null
Tags
Return values
FlowStepBuildername()
Return the flow name.
public
name() : string
Return values
stringreverseIf()
Conditionally reverse step order, optionally flipping edge direction too.
public
reverseIf(bool $condition[, bool $flipEdges = true ]) : static
Parameters
- $condition : bool
- $flipEdges : bool = true
Return values
staticstepByLabeledEdges()
Add a step that resolves its candidate edges from one or more labeled edge rules.
public
stepByLabeledEdges(non-empty-string ...$edgeLabels) : FlowStepBuilder
Parameters
- $edgeLabels : non-empty-string
Return values
FlowStepBuildersteps()
Return the compiled list of movement steps.
public
steps() : array<int, FlowStep>