CompilesLoops
trait CompilesLoops
Constants
| protected FOR_ELSE_COUNTER_CONTEXT_KEY |
Counter to keep track of nested forelse statements. |
Methods
No description
No description
No description
Compile the for-else statements into valid PHP.
Compile the for-else-empty and empty statements into valid PHP.
Compile the end-for-else statements into valid PHP.
Compile the end-empty statements into valid PHP.
Compile the for statements into valid PHP.
Compile the for-each statements into valid PHP.
Compile the break statements into valid PHP.
Compile the continue statements into valid PHP.
Compile the end-for statements into valid PHP.
Compile the end-for-each statements into valid PHP.
Compile the while statements into valid PHP.
Compile the end-while statements into valid PHP.
Details
at line 17
protected int
incrementForElseCounter()
No description
at line 24
protected int
decrementForElseCounter()
No description
at line 31
protected int
getForElseCounter()
No description
at line 41
protected string
compileForelse(string|null $expression)
Compile the for-else statements into valid PHP.
at line 66
protected string
compileEmpty(string|null $expression)
Compile the for-else-empty and empty statements into valid PHP.
at line 81
protected string
compileEndforelse()
Compile the end-for-else statements into valid PHP.
at line 89
protected string
compileEndEmpty()
Compile the end-empty statements into valid PHP.
at line 97
protected string
compileFor(string $expression)
Compile the for statements into valid PHP.
at line 107
protected string
compileForeach(string|null $expression)
Compile the for-each statements into valid PHP.
at line 129
protected string
compileBreak(string|null $expression = null)
Compile the break statements into valid PHP.
at line 143
protected string
compileContinue(string|null $expression)
Compile the continue statements into valid PHP.
at line 157
protected string
compileEndfor()
Compile the end-for statements into valid PHP.
at line 165
protected string
compileEndforeach()
Compile the end-for-each statements into valid PHP.
at line 173
protected string
compileWhile(string $expression)
Compile the while statements into valid PHP.
at line 181
protected string
compileEndwhile()
Compile the end-while statements into valid PHP.