Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 4
CRAP
0.00% covered (danger)
0.00%
0 / 1
DOMImplementation
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 4
20
0.00% covered (danger)
0.00%
0 / 1
 _unimplemented
n/a
0 / 0
n/a
0 / 0
0
 createDocumentType
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 createDocument
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 createHTMLDocument
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 hasFeature
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3// AUTOMATICALLY GENERATED.  DO NOT EDIT.
4// Use `composer build` to regenerate.
5
6namespace Wikimedia\IDLeDOM\Stub;
7
8use Exception;
9use Wikimedia\IDLeDOM\Document;
10use Wikimedia\IDLeDOM\DocumentType;
11use Wikimedia\IDLeDOM\XMLDocument;
12
13trait 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}