ForNode
MMO\client\scs\nodes · 1 symbol · generated 30 Sep 2026
@for $i in 1..6 { ... } or @for $key:$value in $collection { ... }.
class MMO\client\scs\nodes\ForNode extends MMO\client\scs\nodes\Node- Namespace
MMO\client\scs\nodes- Extends
- Node
Properties6
array $body- Type
- array
?MMO\client\scs\nodes\Node $collection- Type
- null | Node
?MMO\client\scs\nodes\Node $from- Type
- null | Node
?string $keyName- Type
- null | string
?MMO\client\scs\nodes\Node $to- Type
- null | Node
string $valueName- Type
- string
Methods1
__construct($keyName, $valueName, $from, $to, $collection, $body)
ForNode.php:14function __construct(
?string $keyName,
string $valueName,
?MMO\client\scs\nodes\Node $from = null,
?MMO\client\scs\nodes\Node $to = null,
?MMO\client\scs\nodes\Node $collection = null,
array $body = []
)| $keyName | null | string | the index/key variable name, null for @for $value in ... |
| $valueName | string | |
| $from = null | null | Node | range start, null for a collection loop |
| $to = null | null | Node | range end (inclusive) |
| $collection = null | null | Node | the iterated collection, null for a range loop |
| $body = [] | array | |
Inherited members (3)
| Properties | Declared by | Description |
|---|
| location | Node | |
| ws | Node | |
| Methods | Declared by | Description |
|---|
| at($location, $ws) | Node | |