ManagesLoops
Table of Contents
- $loopsStack : array<string|int, mixed>
- The stack of in-progress loops.
- addLoop() : void
- Add new loop to the stack.
- getLastLoop() : stdClass|null
- Get an instance of the last loop in the stack.
- getLoopStack() : array<string|int, mixed>
- Get the entire loop stack.
- incrementLoopIndices() : void
- Increment the top loop's indices.
- popLoop() : void
- Pop a loop from the top of the loop stack.
Properties
$loopsStack
The stack of in-progress loops.
protected
array<string|int, mixed>
$loopsStack
= []
Methods
addLoop()
Add new loop to the stack.
public
addLoop(Countable|array<string|int, mixed> $data) : void
Parameters
- $data : Countable|array<string|int, mixed>
Return values
void —getLastLoop()
Get an instance of the last loop in the stack.
public
getLastLoop() : stdClass|null
Return values
stdClass|null —getLoopStack()
Get the entire loop stack.
public
getLoopStack() : array<string|int, mixed>
Return values
array<string|int, mixed> —incrementLoopIndices()
Increment the top loop's indices.
public
incrementLoopIndices() : void
Return values
void —popLoop()
Pop a loop from the top of the loop stack.
public
popLoop() : void