Index

ForNode

MMO\client\scs\nodes · 1 symbol · generated 30 Sep 2026

class

ForNode

ForNode.php:5

@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

collection

?MMO\client\scs\nodes\Node $collection
Type
null | Node

from

?MMO\client\scs\nodes\Node $from
Type
null | Node

to

?MMO\client\scs\nodes\Node $to
Type
null | Node

valueName

string $valueName
Type
string

Methods1

__construct($keyName, $valueName, $from, $to, $collection, $body)

ForNode.php:14
function __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 = [] )
$keyNamenull | stringthe index/key variable name, null for @for $value in ...
$valueNamestring
$from = nullnull | Noderange start, null for a collection loop
$to = nullnull | Noderange end (inclusive)
$collection = nullnull | Nodethe iterated collection, null for a range loop
$body = []array
Inherited members (3)
PropertiesDeclared byDescription
locationNode
wsNode
MethodsDeclared byDescription
at($location, $ws)Node