Automattic\WooCommerce\Vendor\GraphQL\Language\AST
NodeList::merge
Method of the class: NodeList{}
No Hooks.
Returns
null. Nothing (null).
Usage
$NodeList = new NodeList(); $NodeList->merge( $list ): NodeList;
- $list(iterable) (required)
- .
NodeList::merge() NodeList::merge code WC 10.9.1
public function merge(iterable $list): NodeList
{
if (! is_array($list)) {
$list = iterator_to_array($list);
}
return new NodeList(array_merge($this->nodes, $list));
}