Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 8
CRAP
0.00% covered (danger)
0.00%
0 / 1
CharacterData
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 8
72
0.00% covered (danger)
0.00%
0 / 1
 _unimplemented
n/a
0 / 0
n/a
0 / 0
0
 getData
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setData
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getLength
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 substringData
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 appendData
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 insertData
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 deleteData
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 replaceData
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;
9
10trait CharacterData {
11    // use \Wikimedia\IDLeDOM\Stub\ChildNode;
12    // use \Wikimedia\IDLeDOM\Stub\NonDocumentTypeChildNode;
13
14    // Underscore is used to avoid conflicts with DOM-reserved names
15    // phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
16    // phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
17
18    /**
19     * @return Exception
20     */
21    abstract protected function _unimplemented(): Exception;
22
23    // phpcs:enable
24
25    /**
26     * @return string
27     */
28    public function getData(): string {
29        throw self::_unimplemented();
30    }
31
32    /**
33     * @param ?string $val
34     */
35    public function setData( ?string $val ): void {
36        throw self::_unimplemented();
37    }
38
39    /**
40     * @return int
41     */
42    public function getLength(): int {
43        throw self::_unimplemented();
44    }
45
46    /**
47     * @param int $offset
48     * @param int $count
49     * @return string
50     */
51    public function substringData( int $offset, int $count ): string {
52        throw self::_unimplemented();
53    }
54
55    /**
56     * @param string $data
57     * @return void
58     */
59    public function appendData( string $data ): void {
60        throw self::_unimplemented();
61    }
62
63    /**
64     * @param int $offset
65     * @param string $data
66     * @return void
67     */
68    public function insertData( int $offset, string $data ): void {
69        throw self::_unimplemented();
70    }
71
72    /**
73     * @param int $offset
74     * @param int $count
75     * @return void
76     */
77    public function deleteData( int $offset, int $count ): void {
78        throw self::_unimplemented();
79    }
80
81    /**
82     * @param int $offset
83     * @param int $count
84     * @param string $data
85     * @return void
86     */
87    public function replaceData( int $offset, int $count, string $data ): void {
88        throw self::_unimplemented();
89    }
90
91}