Automattic\WooCommerce\Vendor\GraphQL\Language\AST
NodeList::offsetGet
Method of the class: NodeList{}
No Hooks.
Returns
null. Nothing (null).
Usage
$NodeList = new NodeList(); $NodeList->offsetGet( $offset ): Node;
- $offset(int|string) (required)
- .
NodeList::offsetGet() NodeList::offsetGet code WC 10.9.1
public function offsetGet($offset): Node
{
$item = $this->nodes[$offset];
if (is_array($item)) {
// @phpstan-ignore-next-line not really possible to express the correctness of this in PHP
return $this->nodes[$offset] = AST::fromArray($item);
}
return $item;
}