Automattic\WooCommerce\Vendor\GraphQL\Language\AST

NodeList::getIteratorpublicWC 1.0

Method of the class: NodeList{}

No Hooks.

Returns

null. Nothing (null).

Usage

$NodeList = new NodeList();
$NodeList->getIterator(): \Traversable;

NodeList::getIterator() code WC 10.9.1

public function getIterator(): \Traversable
{
    foreach ($this->nodes as $key => $_) {
        yield $key => $this->offsetGet($key);
    }
}