$o->size =
$var->length;
if (0 ===
$o->size
) { $o->
replaceRepresentation(new Representation('Iterator'
));
$o->size = null;
return;
} // Depth limit
// Make empty iterator representation since we need it in DOMNode to point out depth limits
if ($this->parser->
getDepthLimit() &&
$o->depth + 1 >=
$this->parser->
getDepthLimit()) { $b =
new Value();
$b->name =
$o->classname.' Iterator Contents';
$b->access_path = 'iterator_to_array('.
$o->access_path.')';
$b->depth =
$o->depth + 1;
$b->hints
[] = 'depth_limit';
$r =
new Representation('Iterator'
);
$r->contents =
[$b];
$o->
replaceRepresentation($r, 0
);
return;
}