xref: /PHP-8.1/ext/xsl/php_xsl.stub.php (revision 2a7f23e9)
1<?php
2
3/** @generate-class-entries */
4
5class XSLTProcessor
6{
7    /**
8     * @param DOMDocument|SimpleXMLElement $stylesheet
9     * @tentative-return-type
10     */
11    public function importStylesheet(object $stylesheet): bool {}
12
13    /**
14     * @param DOMDocument|SimpleXMLElement $document
15     * @tentative-return-type
16     */
17    public function transformToDoc(object $document, ?string $returnClass = null): object|false {}
18
19    /**
20     * @param DOMDocument|SimpleXMLElement $document
21     * @tentative-return-type
22     */
23    public function transformToUri(object $document, string $uri): int {}
24
25    /**
26     * @param DOMDocument|SimpleXMLElement $document
27     * @tentative-return-type
28     */
29    public function transformToXml(object $document): string|null|false {}
30
31    /** @tentative-return-type */
32    public function setParameter(string $namespace, array|string $name, ?string $value = null): bool {}
33
34    /** @tentative-return-type */
35    public function getParameter(string $namespace, string $name): string|false {}
36
37    /** @tentative-return-type */
38    public function removeParameter(string $namespace, string $name): bool {}
39
40    /** @tentative-return-type */
41    public function hasExsltSupport(): bool {}
42
43    /** @tentative-return-type */
44    public function registerPHPFunctions(array|string|null $functions = null): void {}
45
46    /** @return bool */
47    public function setProfiling(?string $filename) {} // TODO make the return type void
48
49    /** @tentative-return-type */
50    public function setSecurityPrefs(int $preferences): int {}
51
52    /** @tentative-return-type */
53    public function getSecurityPrefs(): int {}
54}
55