Debian Codegraph @

vendor/wikimedia/idle-dom/src/Stub/DOMImplementation.php

raw
1 <?php
2
3 // AUTOMATICALLY GENERATED. DO NOT EDIT.
4 // Use `composer build` to regenerate.
5
6 namespace Wikimedia\IDLeDOM\Stub;
7
8 use Exception;
9 use Wikimedia\IDLeDOM\Document;
10 use Wikimedia\IDLeDOM\DocumentType;
11 use Wikimedia\IDLeDOM\XMLDocument;
12
13 trait DOMImplementation {
14
15 // Underscore is used to avoid conflicts with DOM-reserved names
16 // phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
17 // phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
18
19 /**
20 * @return Exception
21 */
22 abstract protected function _unimplemented(): Exception;
23
24 // phpcs:enable
25
26 /**
27 * @param string $qualifiedName
28 * @param string $publicId
29 * @param string $systemId
30 * @return DocumentType
31 */
32 public function createDocumentType( string $qualifiedName, string $publicId = '', string $systemId = '' ) {
33 throw self::_unimplemented();
34 }
35
36 /**
37 * @param ?string $namespace
38 * @param ?string $qualifiedName
39 * @param DocumentType|null $doctype
40 * @return XMLDocument
41 */
42 public function createDocument( ?string $namespace, ?string $qualifiedName = '', /* ?DocumentType */ $doctype = null ) {
43 throw self::_unimplemented();
44 }
45
46 /**
47 * @param ?string $title
48 * @return Document
49 */
50 public function createHTMLDocument( ?string $title = null ) {
51 throw self::_unimplemented();
52 }
53
54 /**
55 * @return bool
56 */
57 public function hasFeature(): bool {
58 throw self::_unimplemented();
59 }
60
61 }