1<?php
2
3/** @generate-function-entries */
4
5function xmlwriter_open_uri(string $uri): XMLWriter|false {}
6
7function xmlwriter_open_memory(): XMLWriter|false {}
8
9function xmlwriter_set_indent(XMLWriter $writer, bool $enable): bool {}
10
11function xmlwriter_set_indent_string(XMLWriter $writer, string $indentation): bool {}
12
13function xmlwriter_start_comment(XMLWriter $writer): bool {}
14
15function xmlwriter_end_comment(XMLWriter $writer): bool {}
16
17function xmlwriter_start_attribute(XMLWriter $writer, string $name): bool {}
18
19function xmlwriter_end_attribute(XMLWriter $writer): bool {}
20
21function xmlwriter_write_attribute(XMLWriter $writer, string $name, string $value): bool {}
22
23function xmlwriter_start_attribute_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $namespace): bool {}
24
25function xmlwriter_write_attribute_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $namespace, string $value): bool {}
26
27function xmlwriter_start_element(XMLWriter $writer, string $name): bool {}
28
29function xmlwriter_end_element(XMLWriter $writer): bool {}
30
31function xmlwriter_full_end_element(XMLWriter $writer): bool {}
32
33function xmlwriter_start_element_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $namespace): bool {}
34
35function xmlwriter_write_element(XMLWriter $writer, string $name, ?string $content = null): bool {}
36
37function xmlwriter_write_element_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $namespace, ?string $content = null): bool {}
38
39function xmlwriter_start_pi(XMLWriter $writer, string $target): bool {}
40
41function xmlwriter_end_pi(XMLWriter $writer): bool {}
42
43function xmlwriter_write_pi(XMLWriter $writer, string $target, string $content): bool {}
44
45function xmlwriter_start_cdata(XMLWriter $writer): bool {}
46
47function xmlwriter_end_cdata(XMLWriter $writer): bool {}
48
49function xmlwriter_write_cdata(XMLWriter $writer, string $content): bool {}
50
51function xmlwriter_text(XMLWriter $writer, string $content): bool {}
52
53function xmlwriter_write_raw(XMLWriter $writer, string $content): bool {}
54
55function xmlwriter_start_document(XMLWriter $writer, ?string $version = "1.0", ?string $encoding = null, ?string $standalone = null): bool {}
56
57function xmlwriter_end_document(XMLWriter $writer): bool {}
58
59function xmlwriter_write_comment(XMLWriter $writer, string $content): bool {}
60
61function xmlwriter_start_dtd(XMLWriter $writer, string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool {}
62
63function xmlwriter_end_dtd(XMLWriter $writer): bool {}
64
65function xmlwriter_write_dtd(XMLWriter $writer, string $name, ?string $publicId = null, ?string $systemId = null, ?string $content = null): bool {}
66
67function xmlwriter_start_dtd_element(XMLWriter $writer, string $qualifiedName): bool {}
68
69function xmlwriter_end_dtd_element(XMLWriter $writer): bool {}
70
71function xmlwriter_write_dtd_element(XMLWriter $writer, string $name, string $content): bool {}
72
73function xmlwriter_start_dtd_attlist(XMLWriter $writer, string $name): bool {}
74
75function xmlwriter_end_dtd_attlist(XMLWriter $writer): bool {}
76
77function xmlwriter_write_dtd_attlist(XMLWriter $writer, string $name, string $content): bool {}
78
79function xmlwriter_start_dtd_entity(XMLWriter $writer, string $name, bool $isParam): bool {}
80
81function xmlwriter_end_dtd_entity(XMLWriter $writer): bool {}
82
83function xmlwriter_write_dtd_entity(XMLWriter $writer, string $name, string $content, bool $isParam = false, ?string $publicId = null, ?string $systemId = null, ?string $notationData = null): bool {}
84
85function xmlwriter_output_memory(XMLWriter $writer, bool $flush = true): string {}
86
87function xmlwriter_flush(XMLWriter $writer, bool $empty = true): string|int {}
88
89class XMLWriter
90{
91    /**
92     * @return bool
93     * @alias xmlwriter_open_uri
94     * @no-verify Behaviour differs from the aliased function
95     */
96    public function openUri(string $uri) {}
97
98    /**
99     * @return bool
100     * @alias xmlwriter_open_memory
101     * @no-verify Behaviour differs from the aliased function
102     */
103    public function openMemory() {}
104
105    /**
106     * @return bool
107     * @alias xmlwriter_set_indent
108     */
109    public function setIndent(bool $enable) {}
110
111    /**
112     * @return bool
113     * @alias xmlwriter_set_indent_string
114     */
115    public function setIndentString(string $indentation) {}
116
117    /**
118     * @return bool
119     * @alias xmlwriter_start_comment
120     */
121    public function startComment() {}
122
123    /**
124     * @return bool
125     * @alias xmlwriter_end_comment
126     */
127    public function endComment() {}
128
129    /**
130     * @return bool
131     * @alias xmlwriter_start_attribute
132     */
133    public function startAttribute(string $name) {}
134
135    /**
136     * @return bool
137     * @alias xmlwriter_end_attribute
138     */
139    public function endAttribute() {}
140
141    /**
142     * @return bool
143     * @alias xmlwriter_write_attribute
144     */
145    public function writeAttribute(string $name, string $value) {}
146
147    /**
148     * @return bool
149     * @alias xmlwriter_start_attribute_ns
150     */
151    public function startAttributeNs(?string $prefix, string $name, ?string $namespace) {}
152
153    /**
154     * @return bool
155     * @alias xmlwriter_write_attribute_ns
156     */
157    public function writeAttributeNs(?string $prefix, string $name, ?string $namespace, string $value) {}
158
159    /**
160     * @return bool
161     * @alias xmlwriter_start_element
162     */
163    public function startElement(string $name) {}
164
165    /**
166     * @return bool
167     * @alias xmlwriter_end_element
168     */
169    public function endElement() {}
170
171    /**
172     * @return bool
173     * @alias xmlwriter_full_end_element
174     */
175    public function fullEndElement() {}
176
177    /**
178     * @return bool
179     * @alias xmlwriter_start_element_ns
180     */
181    public function startElementNs(?string $prefix, string $name, ?string $namespace) {}
182
183    /**
184     * @return bool
185     * @alias xmlwriter_write_element
186     */
187    public function writeElement(string $name, ?string $content = null) {}
188
189    /**
190     * @return bool
191     * @alias xmlwriter_write_element_ns
192     */
193    public function writeElementNs(?string $prefix, string $name, ?string $namespace, ?string $content = null) {}
194
195    /**
196     * @return bool
197     * @alias xmlwriter_start_pi
198     */
199    public function startPi(string $target) {}
200
201    /**
202     * @return bool
203     * @alias xmlwriter_end_pi
204     */
205    public function endPi() {}
206
207    /**
208     * @return bool
209     * @alias xmlwriter_write_pi
210     */
211    public function writePi(string $target, string $content) {}
212
213    /**
214     * @return bool
215     * @alias xmlwriter_start_cdata
216     */
217    public function startCdata() {}
218
219    /**
220     * @return bool
221     * @alias xmlwriter_end_cdata
222     * */
223    public function endCdata() {}
224
225    /**
226     * @return bool
227     * @alias xmlwriter_write_cdata
228     */
229    public function writeCdata(string $content) {}
230
231    /**
232     * @return bool
233     * @alias xmlwriter_text
234     */
235    public function text(string $content) {}
236
237    /**
238     * @return bool
239     * @alias xmlwriter_write_raw
240     */
241    public function writeRaw(string $content) {}
242
243    /**
244     * @return bool
245     * @alias xmlwriter_start_document
246     */
247    public function startDocument(?string $version = "1.0", ?string $encoding = null, ?string $standalone = null) {}
248
249    /**
250     * @return bool
251     * @alias xmlwriter_end_document
252     */
253    public function endDocument() {}
254
255    /**
256     * @return bool
257     * @alias xmlwriter_write_comment
258     */
259    public function writeComment(string $content) {}
260
261    /**
262     * @return bool
263     * @alias xmlwriter_start_dtd
264     */
265    public function startDtd(string $qualifiedName, ?string $publicId = null, ?string $systemId = null) {}
266
267    /**
268     * @return bool
269     * @alias xmlwriter_end_dtd
270     */
271    public function endDtd() {}
272
273    /**
274     * @return bool
275     * @alias xmlwriter_write_dtd
276     */
277    public function writeDtd(string $name, ?string $publicId = null, ?string $systemId = null, ?string $content = null) {}
278
279    /**
280     * @return bool
281     * @alias xmlwriter_start_dtd_element
282     */
283    public function startDtdElement(string $qualifiedName) {}
284
285    /**
286     * @return bool
287     * @alias xmlwriter_end_dtd_element
288     */
289    public function endDtdElement() {}
290
291    /**
292     * @return bool
293     * @alias xmlwriter_write_dtd_element
294     */
295    public function writeDtdElement(string $name, string $content) {}
296
297    /**
298     * @return bool
299     * @alias xmlwriter_start_dtd_attlist
300     */
301    public function startDtdAttlist(string $name) {}
302
303    /**
304     * @return bool
305     * @alias xmlwriter_end_dtd_attlist
306     */
307    public function endDtdAttlist() {}
308
309    /**
310     * @return bool
311     * @alias xmlwriter_write_dtd_attlist
312     */
313    public function writeDtdAttlist(string $name, string $content) {}
314
315    /**
316     * @return bool
317     * @alias xmlwriter_start_dtd_entity
318     */
319    public function startDtdEntity(string $name, bool $isParam) {}
320
321    /**
322     * @return bool
323     * @alias xmlwriter_end_dtd_entity
324     */
325    public function endDtdEntity() {}
326
327    /**
328     * @return bool
329     * @alias xmlwriter_write_dtd_entity
330     */
331    public function writeDtdEntity(string $name, string $content, bool $isParam = false, ?string $publicId = null, ?string $systemId = null, ?string $notationData = null) {}
332
333    /**
334     * @return string
335     * @alias xmlwriter_output_memory
336     */
337    public function outputMemory(bool $flush = true) {}
338
339    /**
340     * @return string|int
341     * @alias xmlwriter_flush
342     */
343    public function flush(bool $empty = true) {}
344}
345