1<?php
2
3/** @generate-class-entries */
4
5class XMLReader
6{
7    public int $attributeCount;
8
9    public string $baseURI;
10
11    public int $depth;
12
13    public bool $hasAttributes;
14
15    public bool $hasValue;
16
17    public bool $isDefault;
18
19    public bool $isEmptyElement;
20
21    public string $localName;
22
23    public string $name;
24
25    public string $namespaceURI;
26
27    public int $nodeType;
28
29    public string $prefix;
30
31    public string $value;
32
33    public string $xmlLang;
34
35    /** @return bool */
36    public function close() {} // TODO make the return type void
37
38    /** @tentative-return-type */
39    public function getAttribute(string $name): ?string {}
40
41    /** @tentative-return-type */
42    public function getAttributeNo(int $index): ?string {}
43
44    /** @tentative-return-type */
45    public function getAttributeNs(string $name, string $namespace): ?string {}
46
47    /** @tentative-return-type */
48    public function getParserProperty(int $property): bool {}
49
50    /** @tentative-return-type */
51    public function isValid(): bool {}
52
53    /** @tentative-return-type */
54    public function lookupNamespace(string $prefix): ?string {}
55
56    /** @tentative-return-type */
57    public function moveToAttribute(string $name): bool {}
58
59    /** @tentative-return-type */
60    public function moveToAttributeNo(int $index): bool {}
61
62    /** @tentative-return-type */
63    public function moveToAttributeNs(string $name, string $namespace): bool {}
64
65    /** @tentative-return-type */
66    public function moveToElement(): bool {}
67
68    /** @tentative-return-type */
69    public function moveToFirstAttribute(): bool {}
70
71    /** @tentative-return-type */
72    public function moveToNextAttribute(): bool {}
73
74    /** @tentative-return-type */
75    public function read(): bool {}
76
77    /** @tentative-return-type */
78    public function next(?string $name = null): bool {}
79
80    /** @return bool|XMLReader */
81    public static function open(string $uri, ?string $encoding = null, int $flags = 0) {} // TODO Return type shouldn't be dependent on the call scope
82
83    /** @tentative-return-type */
84    public function readInnerXml(): string {}
85
86    /** @tentative-return-type */
87    public function readOuterXml(): string {}
88
89    /** @tentative-return-type */
90    public function readString(): string {}
91
92    /** @tentative-return-type */
93    public function setSchema(?string $filename): bool {}
94
95    /** @tentative-return-type */
96    public function setParserProperty(int $property, bool $value): bool {}
97
98    /** @tentative-return-type */
99    public function setRelaxNGSchema(?string $filename): bool {}
100
101    /** @tentative-return-type */
102    public function setRelaxNGSchemaSource(?string $source): bool {}
103
104    /** @return bool|XMLReader */
105    public static function XML(string $source, ?string $encoding = null, int $flags = 0) {} // TODO Return type shouldn't be dependent on the call scope
106
107    /** @tentative-return-type */
108    public function expand(?DOMNode $baseNode = null): DOMNode|false {}
109}
110