final class SliceStep
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

One thing that has to happen, on the way to the call, for its argument to have the value it has.

A step is the node that does it: an assignment, a global or static declaration, an unset, the start of one pass through a foreach, or a closure parameter taking whatever a caller passes. A step can instead hold alternatives — whole runs of steps, any one of which may have happened — when the paths had to be gathered up to keep their number bounded. Entering a closure is a step as well: the names it lists are the ones the closure defines for itself, as parameters or not at all, rather than taking them from the body it is written in.

Properties§

public Node|null $node
public list<list<SliceStep>> $alternatives = []
public list<string> $names = []

Methods§

public function __construct(
    public Node|null $node,
    public list<list<SliceStep>> $alternatives = [],
    public list<string> $names = [],
)

Parameters

$nodeNode|nullWhat happens, or null for a step made of alternatives
$alternativeslist<list<SliceStep>>The runs any one of which happened, each in the order it runs
$nameslist<string>For entering a closure, the names the closure does not take from outside
public function signature(): string

What tells this step apart from another, for recognising the same path reached twice.

Returns

string
Test cases 1
Called from 1
Calls 1
  • function-call spl_object_id line 52

Test cases 77§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 4
Other tests reaching this symbol 73

Relations§

Instantiated in 4
Static calls 1
Method calls 1
Type declarations 4