public function __construct(DOMNodeList $nodeList) { $this->position = 0; $this->importNodes($nodeList); }