php_xsl.stub.php 1.6 KB

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