1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
|
<?php
/** @generate-function-entries */
class DOMDocumentType extends DOMNode
{
}
class DOMCdataSection extends DOMText
{
public function __construct(string $data) {}
}
class DOMComment extends DOMCharacterData
{
public function __construct(string $data = "") {}
}
interface DOMParentNode
{
/** @param DOMNode|string $nodes */
public function append(...$nodes): void;
/** @param DOMNode|string $nodes */
public function prepend(...$nodes): void;
}
interface DOMChildNode
{
public function remove(): void;
/** @param DOMNode|string $nodes */
public function before(... $nodes): void;
/** @param DOMNode|string $nodes */
public function after(...$nodes): void;
/** @param DOMNode|string $nodes */
public function replaceWith(...$nodes): void;
}
class DOMNode
{
/** @return DOMNode|false */
public function appendChild(DOMNode $node) {}
/** @return string|false */
public function C14N(bool $exclusive = false, bool $withComments = false, ?array $xpath = null, ?array $nsPrefixes = null) {}
/** @return int|false */
public function C14NFile(string $uri, bool $exclusive = false, bool $withComments = false, ?array $xpath = null, ?array $nsPrefixes = null) {}
/** @return DOMNode|false */
public function cloneNode(bool $deep = false) {}
/** @return int */
public function getLineNo() {}
/** @return string|null */
public function getNodePath() {}
/** @return bool */
public function hasAttributes() {}
/** @return bool */
public function hasChildNodes() {}
/** @return DOMNode|false */
public function insertBefore(DOMNode $node, ?DOMNode $child = null) {}
/** @return bool */
public function isDefaultNamespace(string $namespace) {}
/** @return bool */
public function isSameNode(DOMNode $otherNode) {}
/** @return bool */
public function isSupported(string $feature, string $version) {}
/** @return string|null */
public function lookupNamespaceURI(?string $prefix) {}
/** @return string|null */
public function lookupPrefix(string $namespace) {}
/** @return void */
public function normalize() {}
/** @return DOMNode|false */
public function removeChild(DOMNode $child) {}
/** @return DOMNode|false */
public function replaceChild(DOMNode $node, DOMNode $child) {}
}
class DOMNameSpaceNode
{
}
class DOMImplementation
{
/** @return void */
public function getFeature(string $feature, string $version) {}
/** @return bool */
public function hasFeature(string $feature, string $version) {}
/** @return DOMDocumentType|false */
public function createDocumentType(string $qualifiedName, string $publicId = "", string $systemId = "") {}
/** @return DOMDocument|false */
public function createDocument(?string $namespace = null, string $qualifiedName = "", ?DOMDocumentType $doctype = null) {}
}
class DOMDocumentFragment extends DOMNode implements DOMParentNode
{
public function __construct() {}
/** @return bool */
public function appendXML(string $data) {}
/** @param DOMNode|string $nodes */
public function append(...$nodes): void {}
/** @param DOMNode|string $nodes */
public function prepend(...$nodes): void {}
}
class DOMNodeList implements IteratorAggregate, Countable
{
/** @return int|false */
public function count() {}
public function getIterator(): Iterator {}
/** @return DOMNode|null */
public function item(int $index) {}
}
class DOMCharacterData extends DOMNode implements DOMChildNode
{
/** @return bool */
public function appendData(string $data) {}
/** @return string|false */
public function substringData(int $offset, int $count) {}
/** @return bool */
public function insertData(int $offset, string $data) {}
/** @return bool */
public function deleteData(int $offset, int $count) {}
/** @return bool */
public function replaceData(int $offset, int $count, string $data) {}
/** @param DOMNode|string $nodes */
public function replaceWith(...$nodes): void {}
public function remove(): void {}
/** @param DOMNode|string $nodes */
public function before(... $nodes): void {}
/** @param DOMNode|string $nodes */
public function after(...$nodes): void {}
}
class DOMAttr extends DOMNode
{
public function __construct(string $name, string $value = "") {}
/** @return bool */
public function isId() {}
}
class DOMElement extends DOMNode implements DOMParentNode, DOMChildNode
{
public function __construct(string $qualifiedName, ?string $value = null, string $namespace = "") {}
/** @return string */
public function getAttribute(string $qualifiedName) {}
/** @return string */
public function getAttributeNS(?string $namespace, string $localName) {}
/** @return DOMAttr|DOMNamespaceNode|false */
public function getAttributeNode(string $qualifiedName) {}
/** @return DOMAttr|DOMNamespaceNode|null */
public function getAttributeNodeNS(?string $namespace, string $localName) {}
/** @return DOMNodeList */
public function getElementsByTagName(string $qualifiedName) {}
/** @return DOMNodeList */
public function getElementsByTagNameNS(?string $namespace, string $localName) {}
/** @return bool */
public function hasAttribute(string $qualifiedName) {}
/** @return bool */
public function hasAttributeNS(?string $namespace, string $localName) {}
/** @return bool */
public function removeAttribute(string $qualifiedName) {}
/** @return void */
public function removeAttributeNS(?string $namespace, string $localName) {}
/** @return DOMAttr|false */
public function removeAttributeNode(DOMAttr $attr) {}
/** @return DOMAttr|bool */
public function setAttribute(string $qualifiedName, string $value) {}
/** @return void */
public function setAttributeNS(?string $namespace, string $qualifiedName, string $value) {}
/** @return DOMAttr|null|false */
public function setAttributeNode(DOMAttr $attr) {}
/** @return DOMAttr|null|false */
public function setAttributeNodeNS(DOMAttr $attr) {}
/** @return void */
public function setIdAttribute(string $qualifiedName, bool $isId) {}
/** @return void */
public function setIdAttributeNS(string $namespace, string $qualifiedName, bool $isId) {}
/** @return void */
public function setIdAttributeNode(DOMAttr $attr, bool $isId) {}
public function remove(): void {}
/** @param DOMNode|string $nodes */
public function before(... $nodes): void {}
/** @param DOMNode|string $nodes */
public function after(...$nodes): void {}
/** @param DOMNode|string $nodes */
public function replaceWith(...$nodes): void {}
/** @param DOMNode|string $nodes */
public function append(...$nodes): void {}
/** @param DOMNode|string $nodes */
public function prepend(...$nodes): void {}
}
class DOMDocument extends DOMNode implements DOMParentNode
{
public function __construct(string $version = "1.0", string $encoding = "") {}
/** @return DOMAttr|false */
public function createAttribute(string $localName) {}
/** @return DOMAttr|false */
public function createAttributeNS(?string $namespace, string $qualifiedName) {}
/** @return DOMCdataSection|false */
public function createCDATASection(string $data) {}
/** @return DOMComment|false */
public function createComment(string $data) {}
/** @return DOMDocumentFragment|false */
public function createDocumentFragment() {}
/** @return DOMElement|false */
public function createElement(string $localName, string $value = "") {}
/** @return DOMElement|false */
public function createElementNS(?string $namespace, string $qualifiedName, string $value = "") {}
/** @return DOMEntityReference|false */
public function createEntityReference(string $name) {}
/** @return DOMProcessingInstruction|false */
public function createProcessingInstruction(string $target, string $data = "") {}
/** @return DOMText|false */
public function createTextNode(string $data) {}
/** @return DOMElement|null */
public function getElementById(string $elementId) {}
/** @return DOMNodeList */
public function getElementsByTagName(string $qualifiedName) {}
/** @return DOMNodeList */
public function getElementsByTagNameNS(?string $namespace, string $localName) {}
/** @return DOMNode|false */
public function importNode(DOMNode $node, bool $deep = false) {}
/** @return DOMDocument|bool */
public function load(string $filename, int $options = 0) {}
/** @return DOMDocument|bool */
public function loadXML(string $source, int $options = 0) {}
/** @return void */
public function normalizeDocument() {}
/** @return bool */
public function registerNodeClass(string $baseClass, ?string $extendedClass) {}
/** @return int|false */
public function save(string $filename, int $options = 0) {}
#ifdef LIBXML_HTML_ENABLED
/** @return DOMDocument|bool */
public function loadHTML(string $source, int $options = 0) {}
/** @return DOMDocument|bool */
public function loadHTMLFile(string $filename, int $options = 0) {}
/** @return string|false */
public function saveHTML(?DOMNode $node = null) {}
/** @return int|false */
public function saveHTMLFile(string $filename) {}
#endif
/** @return string|false */
public function saveXML(?DOMNode $node = null, int $options = 0) {}
#ifdef LIBXML_SCHEMAS_ENABLED
/** @return bool */
public function schemaValidate(string $filename, int $flags = 0) {}
/** @return bool */
public function schemaValidateSource(string $source, int $flags = 0) {}
/** @return bool */
public function relaxNGValidate(string $filename) {}
/** @return bool */
public function relaxNGValidateSource(string $source) {}
#endif
/** @return bool */
public function validate() {}
/** @return int|false */
public function xinclude(int $options = 0) {}
/** @return DOMNode|false */
public function adoptNode(DOMNode $node) {}
/** @param DOMNode|string $nodes */
public function append(...$nodes): void {}
/** @param DOMNode|string $nodes */
public function prepend(...$nodes): void {}
}
final class DOMException extends Exception
{
}
class DOMText extends DOMCharacterData
{
public function __construct(string $data = "") {}
/** @return bool */
public function isWhitespaceInElementContent() {}
/**
* @return bool
* @alias DOMText::isWhitespaceInElementContent
*/
public function isElementContentWhitespace() {}
/** @return DOMText|false */
public function splitText(int $offset) {}
}
class DOMNamedNodeMap implements IteratorAggregate, Countable
{
/** @return DOMNode|null */
public function getNamedItem(string $qualifiedName) {}
/** @return DOMNode|null */
public function getNamedItemNS(?string $namespace, string $localName) {}
/** @return DOMNode|null */
public function item(int $index) {}
/** @return int|false */
public function count() {}
public function getIterator(): Iterator {}
}
class DOMEntity extends DOMNode
{
}
class DOMEntityReference extends DOMNode
{
public function __construct(string $name) {}
}
class DOMNotation extends DOMNode
{
}
class DOMProcessingInstruction extends DOMNode
{
public function __construct(string $name, string $value = "") {}
}
#ifdef LIBXML_XPATH_ENABLED
class DOMXPath
{
public function __construct(DOMDocument $document, bool $registerNodeNS = true) {}
/** @return mixed */
public function evaluate(string $expression, ?DOMNode $contextNode = null, bool $registerNodeNS = true) {}
/** @return mixed */
public function query(string $expression, ?DOMNode $contextNode = null, bool $registerNodeNS = true) {}
/** @return bool */
public function registerNamespace(string $prefix, string $namespace) {}
/** @return void */
public function registerPhpFunctions(string|array|null $restrict = null) {}
}
#endif
function dom_import_simplexml(object $node): ?DOMElement {}
|