function ElementCollection::importNodes
1 call to ElementCollection::importNodes()
- ElementCollection::__construct in vendor/
phar-io/ manifest/ src/ xml/ ElementCollection.php
File
-
vendor/
phar-io/ manifest/ src/ xml/ ElementCollection.php, line 57
Class
- ElementCollection
- @template-implements Iterator<int,DOMElement>
Namespace
PharIo\ManifestCode
private function importNodes(DOMNodeList $nodeList) : void {
foreach ($nodeList as $node) {
if (!$node instanceof DOMElement) {
throw new ElementCollectionException(sprintf('\\DOMElement expected, got \\%s', get_class($node)));
}
$this->nodes[] = $node;
}
}