*/ public DOMNodeList $childNodes; /** @readonly */ public ?DOMNode $firstChild; /** @readonly */ public ?DOMNode $lastChild; /** @readonly */ public ?DOMNode $previousSibling; /** @readonly */ public ?DOMNode $nextSibling; /** * @readonly * @var DOMNamedNodeMap|null */ public ?DOMNamedNodeMap $attributes; /** @readonly */ public ?DOMDocument $ownerDocument; /** @readonly */ public ?string $namespaceURI; public string $prefix; /** @readonly */ public ?string $localName; /** @readonly */ public ?string $baseURI; public string $textContent; /** * @return DOMNode|false * @psalm-ignore-falsable-return */ public function appendChild(DOMNode $node) {} /** * @return string|false * @psalm-ignore-falsable-return */ public function C14N(bool $exclusive = false, bool $withComments = false, ?array $xpath = null, ?array $nsPrefixes = null) {} /** * @return int|false * @psalm-ignore-falsable-return */ public function C14NFile(string $uri, bool $exclusive = false, bool $withComments = false, ?array $xpath = null, ?array $nsPrefixes = null) {} /** * @return DOMNode|false * @psalm-ignore-falsable-return */ public function cloneNode(bool $deep = false) {} public function getLineNo(): int {} public function getNodePath(): ?string {} public function hasAttributes(): bool {} public function hasChildNodes(): bool {} /** * @return DOMNode|false * @psalm-ignore-falsable-return */ public function insertBefore(DOMNode $node, ?DOMNode $child = null) {} public function isDefaultNamespace(string $namespace): bool {} public function isSameNode(DOMNode $otherNode): bool {} public function isSupported(string $feature, string $version): bool {} public function lookupNamespaceURI(?string $prefix): ?string {} public function lookupPrefix(string $namespace): ?string {} public function normalize(): void {} /** * @return DOMNode|false * @psalm-ignore-falsable-return */ public function removeChild(DOMNode $child) {} /** * @return DOMNode|false * @psalm-ignore-falsable-return */ public function replaceChild(DOMNode $node, DOMNode $child) {} } class DOMNameSpaceNode { /** @readonly */ public string $nodeName; /** @readonly */ public ?string $nodeValue; /** @readonly */ public int $nodeType; /** @readonly */ public string $prefix; /** @readonly */ public ?string $localName; /** @readonly */ public ?string $namespaceURI; /** @readonly */ public ?DOMDocument $ownerDocument; /** @readonly */ public ?DOMNode $parentNode; } class DOMDocumentFragment extends DOMNode implements DOMParentNode { /** @readonly */ public ?DOMElement $firstElementChild; /** @readonly */ public ?DOMElement $lastElementChild; /** @readonly */ public int $childElementCount; public function __construct() {} public function appendXML(string $data): bool {} /** * @param DOMNode|string ...$nodes * @php-from 8.0 */ public function append(...$nodes): void {} /** * @param DOMNode|string ...$nodes * @php-from 8.0 */ public function prepend(...$nodes): void {} } class DOMDocument extends DOMNode implements DOMParentNode { /** @readonly */ public ?DOMDocumentType $doctype; /** @readonly */ public DOMImplementation $implementation; /** @readonly */ public ?DOMElement $documentElement; /** * @deprecated * @readonly */ public ?string $actualEncoding; /** * @var ?string */ public $encoding; /** @readonly */ public ?string $xmlEncoding; /** * @var bool */ public $standalone; /** * @var bool */ public $xmlStandalone; /** * @var ?string */ public $version; /** * @var ?string */ public $xmlVersion; /** * @var bool */ public $strictErrorChecking; /** * @var ?string */ public $documentURI; /** * @var mixed * @readonly * @deprecated */ public $config; /** * @var bool */ public $formatOutput; /** * @var bool */ public $validateOnParse; /** * @var bool */ public $resolveExternals; /** * @var bool */ public $preserveWhiteSpace; /** * @var bool */ public $recover; /** * @var bool */ public $substituteEntities; /** @readonly */ public ?DOMElement $firstElementChild; /** @readonly */ public ?DOMElement $lastElementChild; /** @readonly */ public int $childElementCount; public function __construct(string $version = '1.0', string $encoding = '') {} /** * @return DOMAttr|false * @psalm-ignore-falsable-return */ public function createAttribute(string $localName) {} /** * @return DOMAttr|false * @psalm-ignore-falsable-return */ public function createAttributeNS(?string $namespace, string $qualifiedName) {} /** * @return DOMCdataSection|false * @psalm-ignore-falsable-return */ public function createCDATASection(string $data) {} /** * @return DOMComment|false * @psalm-ignore-falsable-return */ public function createComment(string $data) {} /** * @throws DOMException * @php-from 8.1 */ public function createComment(string $data): DOMComment {} /** * @return DOMDocumentFragment|false * @psalm-ignore-falsable-return */ public function createDocumentFragment() {} /** * @throws DOMException * @php-from 8.1 */ public function createDocumentFragment(): DOMDocumentFragment {} /** * @return DOMElement|false * @psalm-ignore-falsable-return */ public function createElement(string $localName, string $value = '') {} /** * @return DOMElement|false * @psalm-ignore-falsable-return */ public function createElementNS(?string $namespace, string $qualifiedName, string $value = '') {} /** * @return DOMEntityReference|false * @psalm-ignore-falsable-return */ public function createEntityReference(string $name) {} /** * @return DOMProcessingInstruction|false * @psalm-ignore-falsable-return */ public function createProcessingInstruction(string $target, string $data = '') {} /** * @return DOMText|false * @psalm-ignore-falsable-return */ public function createTextNode(string $data) {} /** * @throws DOMException * @php-from 8.1 */ public function createTextNode(string $data): DOMText {} public function getElementById(string $elementId): ?DOMElement {} /** @return DOMNodeList */ public function getElementsByTagName(string $qualifiedName): DOMNodeList {} /** @return DOMNodeList */ public function getElementsByTagNameNS(string $namespace, string $localName): DOMNodeList {} /** * @return DOMNodeList * @php-from 8.0.3 */ public function getElementsByTagNameNS(?string $namespace, string $localName): DOMNodeList {} /** * @return DOMNode|false * @psalm-ignore-falsable-return */ public function importNode(DOMNode $node, bool $deep = false) {} /** * @return bool * @psalm-ignore-falsable-return **/ public function load(string $filename, int $options = 0) {} /** * @return bool * @psalm-ignore-falsable-return */ public function loadXML(string $source, int $options = 0) {} public function normalizeDocument(): void {} public function registerNodeClass(string $baseClass, ?string $extendedClass): bool {} /** * @return int|false * @psalm-ignore-falsable-return */ public function save(string $filename, int $options = 0) {} /** @return bool */ public function loadHTML(string $source, int $options = 0) {} /** @return bool */ public function loadHTMLFile(string $filename, int $options = 0) {} /** * @return string|false * @psalm-ignore-falsable-return */ public function saveHTML(?DOMNode $node = null) {} /** * @return int|false * @psalm-ignore-falsable-return */ public function saveHTMLFile(string $filename) {} /** * @return string|false * @psalm-ignore-falsable-return */ public function saveXML(?DOMNode $node = null, int $options = 0) {} public function schemaValidate(string $filename, int $flags = 0): bool {} public function schemaValidateSource(string $source, int $flags = 0): bool {} public function relaxNGValidate(string $filename): bool {} public function relaxNGValidateSource(string $source): bool {} public function validate(): bool {} /** * @return int|false * @psalm-ignore-falsable-return */ public function xinclude(int $options = 0) {} /** * @return DOMNode|false * @psalm-ignore-falsable-return */ public function adoptNode(DOMNode $node) {} /** * @return DOMNode|string ...$nodes * @php-from 8.0 */ public function append(...$nodes) : void {} /** * @return DOMNode|string ...$nodes * @php-from 8.0 */ public function prepend(...$nodes) : void {} } /** * @template-covariant TNode as DOMNode * @template-implements Traversable */ class DOMNodeList implements Traversable { /** @readonly */ public int $length; /** * @return TNode|null * @psalm-ignore-nullable-return */ public function item(int $index) {} } /** * @template-covariant TNode as DOMNode * @template-implements Traversable * * @php-from 7.2 */ class DOMNodeList implements Traversable, Countable { /** @readonly */ public int $length; public function count(): int {} /** * @return TNode|null * @psalm-ignore-nullable-return */ public function item(int $index) {} } /** * @template-covariant TNode as DOMNode * @template-implements IteratorAggregate * * @php-from 8.0 */ class DOMNodeList implements IteratorAggregate, Countable { /** @readonly */ public int $length; public function count(): int {} /** @return Iterator */ public function getIterator() : Iterator {} /** * @return TNode|null * @psalm-ignore-nullable-return */ public function item(int $index) {} } /** * @template-covariant TNode as DOMNode * @template-implements Traversable */ class DOMNamedNodeMap implements Traversable, Countable { /** @readonly */ public int $length; /** @return TNode|null */ public function getNamedItem(string $qualifiedName): ?DOMNode {} /** @return TNode|null */ public function getNamedItemNS(?string $namespace, string $localName): ?DOMNode {} /** * @return TNode|null * @psalm-ignore-nullable-return */ public function item(int $index): ?DOMNode {} public function count(): int {} } /** * @template-covariant TNode as DOMNode * @template-implements IteratorAggregate * * @php-from 8.0 */ class DOMNamedNodeMap implements IteratorAggregate, Countable { /** @readonly */ public int $length; /** @return TNode|null */ public function getNamedItem(string $qualifiedName): ?DOMNode {} /** @return TNode|null */ public function getNamedItemNS(?string $namespace, string $localName): ?DOMNode {} /** * @return TNode|null * @psalm-ignore-nullable-return */ public function item(int $index): ?DOMNode {} public function count(): int {} /** @return Iterator */ public function getIterator() : Iterator {} } class DOMCharacterData extends DOMNode implements DOMChildNode { public string $data; /** @readonly */ public int $length; /** @readonly */ public ?DOMElement $previousElementSibling; /** @readonly */ public ?DOMElement $nextElementSibling; public function appendData(string $data): bool {} /** * @return string|false * @psalm-ignore-falsable-return */ public function substringData(int $offset, int $count) {} public function insertData(int $offset, string $data): bool {} public function deleteData(int $offset, int $count): bool {} public function replaceData(int $offset, int $count, string $data): bool {} /** * @param DOMNode|string ...$nodes * @php-from 8.0 */ public function replaceWith(...$nodes) : void {} /** @php-from 8.0 */ public function remove() : void {} /** * @param DOMNode|string ...$nodes * @php-from 8.0 */ public function before(...$nodes) : void {} /** * @param DOMNode|string ...$nodes * @php-from 8.0 */ public function after(...$nodes) : void {} } class DOMAttr extends DOMNode { /** @readonly */ public string $name; /** @readonly */ public bool $specified; public string $value; /** @readonly */ public ?DOMElement $ownerElement; /** @readonly */ public mixed $schemaTypeInfo; /** * Inherited from DOMNode, but always non-null * @readonly */ public string $localName; public function __construct(string $name, string $value = '') {} public function isId(): bool {} } class DOMElement extends DOMNode implements DOMParentNode, DOMChildNode { /** @readonly */ public string $tagName; /** @readonly */ public mixed $schemaTypeInfo; /** @readonly */ public ?DOMElement $firstElementChild; /** @readonly */ public ?DOMElement $lastElementChild; /** @readonly */ public int $childElementCount; /** @readonly */ public ?DOMElement $previousElementSibling; /** @readonly */ public ?DOMElement $nextElementSibling; /** * Inherited from DOMNode, but always non-null. * * @readonly * @var DOMNamedNodeMap */ public DOMNamedNodeMap $attributes; /** * Inherited from DOMNode, but always non-null * @readonly */ public string $localName; public function __construct(string $qualifiedName, ?string $value = null, string $namespace = '') {} public function getAttribute(string $qualifiedName): string {} public function getAttributeNS(?string $namespace, string $localName): string {} /** * @return DOMAttr|DOMNameSpaceNode|false * @psalm-ignore-falsable-return */ public function getAttributeNode(string $qualifiedName) {} /** * @return DOMAttr|DOMNameSpaceNode|false * @psalm-ignore-falsable-return */ public function getAttributeNodeNS(?string $namespace, string $localName) {} /** @return DOMNodeList */ public function getElementsByTagName(string $qualifiedName): DOMNodeList {} /** @return DOMNodeList */ public function getElementsByTagNameNS(string $namespace, string $localName): DOMNodeList {} /** * @return DOMNodeList * @php-from 8.0.3 */ public function getElementsByTagNameNS(?string $namespace, string $localName): DOMNodeList {} public function hasAttribute(string $qualifiedName): bool {} public function hasAttributeNS(?string $namespace, string $localName): bool {} public function removeAttribute(string $qualifiedName): bool {} public function removeAttributeNS(?string $namespace, string $localName): void {} /** * @return DOMAttr|false * @psalm-ignore-falsable-return */ public function removeAttributeNode(DOMAttr $attr) {} /** * @return DOMAttr|false * @psalm-ignore-falsable-return */ public function setAttribute(string $qualifiedName, string $value) {} public function setAttributeNS(?string $namespace, string $qualifiedName, string $value): void {} /** * @return DOMAttr|null|false * @psalm-ignore-falsable-return */ public function setAttributeNode(DOMAttr $attr) {} /** * @return DOMAttr|null|false * @psalm-ignore-falsable-return */ public function setAttributeNodeNS(DOMAttr $attr) {} public function setIdAttribute(string $qualifiedName, bool $isId): void {} public function setIdAttributeNS(string $namespace, string $qualifiedName, bool $isId): void {} public function setIdAttributeNode(DOMAttr $attr, bool $isId): void {} /** @php-from 8.0 */ public function remove() : void {} /** * @param DOMNode|string ...$nodes * @php-from 8.0 */ public function before(...$nodes) : void {} /** * @param DOMNode|string ...$nodes * @php-from 8.0 */ public function after(...$nodes) : void {} /** * @param DOMNode|string ...$nodes * @php-from 8.0 */ public function replaceWith(...$nodes) : void {} /** * @param DOMNode|string ...$nodes * @php-from 8.0 */ public function append(...$nodes) : void {} /** * @param DOMNode|string ...$nodes * @php-from 8.0 */ public function prepend(...$nodes) : void {} } class DOMText extends DOMCharacterData { /** @readonly */ public string $wholeText; public function __construct(string $data = '') {} public function isWhitespaceInElementContent(): bool {} /** * @alias DOMText::isWhitespaceInElementContent */ public function isElementContentWhitespace(): bool {} /** * @return DOMText|false * @psalm-ignore-falsable-return */ public function splitText(int $offset) {} } class DOMComment extends DOMCharacterData { public function __construct(string $data = '') {} } class DOMCdataSection extends DOMText { public function __construct(string $data) {} } class DOMDocumentType extends DOMNode { /** @readonly */ public string $name; /** @readonly */ public DOMNamedNodeMap $entities; /** @readonly */ public DOMNamedNodeMap $notations; /** @readonly */ public string $publicId; /** @readonly */ public string $systemId; /** @readonly */ public ?string $internalSubset; } class DOMNotation extends DOMNode { /** @readonly */ public string $publicId; /** @readonly */ public string $systemId; } class DOMEntity extends DOMNode { /** @readonly */ public ?string $publicId; /** @readonly */ public ?string $systemId; /** @readonly */ public ?string $notationName; /** * @readonly * @deprecated */ public ?string $actualEncoding; /** * @readonly * @deprecated */ public ?string $encoding; /** * @readonly * @deprecated */ public ?string $version; } class DOMEntityReference extends DOMNode { public function __construct(string $name) {} } class DOMProcessingInstruction extends DOMNode { /** @readonly */ public string $target; public string $data; public function __construct(string $name, string $value = '') {} } class DOMXPath { /** @readonly */ public DOMDocument $document; public bool $registerNodeNamespaces; public function __construct(DOMDocument $document, bool $registerNodeNS = true) {} /** * @return DOMNodeList|false * @psalm-taint-sink xpath $expression */ public function evaluate(string $expression, ?DOMNode $contextNode = null, bool $registerNodeNS = true): mixed {} /** * @return DOMNodeList|false * @psalm-taint-sink xpath $expression */ public function query(string $expression, ?DOMNode $contextNode = null, bool $registerNodeNS = true): mixed {} public function registerNamespace(string $prefix, string $namespace): bool {} public function registerPhpFunctions(string|array|null $restrict = null): void {} }