Debian Codegraph @

vendor/wikimedia/idle-dom/src/Stub/Element.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\Attr;
10 use Wikimedia\IDLeDOM\DOMTokenList;
11 use Wikimedia\IDLeDOM\HTMLCollection;
12 use Wikimedia\IDLeDOM\NamedNodeMap;
13 use Wikimedia\IDLeDOM\ShadowRoot;
14 use Wikimedia\IDLeDOM\ShadowRootInit;
15
16 trait Element {
17 // use \Wikimedia\IDLeDOM\Stub\ChildNode;
18 // use \Wikimedia\IDLeDOM\Stub\InnerHTML;
19 // use \Wikimedia\IDLeDOM\Stub\NonDocumentTypeChildNode;
20 // use \Wikimedia\IDLeDOM\Stub\ParentNode;
21 // use \Wikimedia\IDLeDOM\Stub\Slottable;
22
23 // Underscore is used to avoid conflicts with DOM-reserved names
24 // phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
25 // phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
26
27 /**
28 * @return Exception
29 */
30 abstract protected function _unimplemented(): Exception;
31
32 // phpcs:enable
33
34 /**
35 * @return ?string
36 */
37 public function getNamespaceURI(): ?string {
38 throw self::_unimplemented();
39 }
40
41 /**
42 * @return ?string
43 */
44 public function getPrefix(): ?string {
45 throw self::_unimplemented();
46 }
47
48 /**
49 * @return string
50 */
51 public function getLocalName(): string {
52 throw self::_unimplemented();
53 }
54
55 /**
56 * @return string
57 */
58 public function getTagName(): string {
59 throw self::_unimplemented();
60 }
61
62 /**
63 * @return DOMTokenList
64 */
65 public function getClassList() {
66 throw self::_unimplemented();
67 }
68
69 /**
70 * @return bool
71 */
72 public function hasAttributes(): bool {
73 throw self::_unimplemented();
74 }
75
76 /**
77 * @return NamedNodeMap
78 */
79 public function getAttributes() {
80 throw self::_unimplemented();
81 }
82
83 /**
84 * @return list<string>
85 */
86 public function getAttributeNames(): array {
87 throw self::_unimplemented();
88 }
89
90 /**
91 * @param string $qualifiedName
92 * @return ?string
93 */
94 public function getAttribute( string $qualifiedName ): ?string {
95 throw self::_unimplemented();
96 }
97
98 /**
99 * @param ?string $namespace
100 * @param string $localName
101 * @return ?string
102 */
103 public function getAttributeNS( ?string $namespace, string $localName ): ?string {
104 throw self::_unimplemented();
105 }
106
107 /**
108 * @param string $qualifiedName
109 * @param string $value
110 * @return void
111 */
112 public function setAttribute( string $qualifiedName, string $value ): void {
113 throw self::_unimplemented();
114 }
115
116 /**
117 * @param ?string $namespace
118 * @param string $qualifiedName
119 * @param string $value
120 * @return void
121 */
122 public function setAttributeNS( ?string $namespace, string $qualifiedName, string $value ): void {
123 throw self::_unimplemented();
124 }
125
126 /**
127 * @param string $qualifiedName
128 * @return void
129 */
130 public function removeAttribute( string $qualifiedName ): void {
131 throw self::_unimplemented();
132 }
133
134 /**
135 * @param ?string $namespace
136 * @param string $localName
137 * @return void
138 */
139 public function removeAttributeNS( ?string $namespace, string $localName ): void {
140 throw self::_unimplemented();
141 }
142
143 /**
144 * @param string $qualifiedName
145 * @param ?bool $force
146 * @return bool
147 */
148 public function toggleAttribute( string $qualifiedName, ?bool $force = null ): bool {
149 throw self::_unimplemented();
150 }
151
152 /**
153 * @param string $qualifiedName
154 * @return bool
155 */
156 public function hasAttribute( string $qualifiedName ): bool {
157 throw self::_unimplemented();
158 }
159
160 /**
161 * @param ?string $namespace
162 * @param string $localName
163 * @return bool
164 */
165 public function hasAttributeNS( ?string $namespace, string $localName ): bool {
166 throw self::_unimplemented();
167 }
168
169 /**
170 * @param string $qualifiedName
171 * @return Attr|null
172 */
173 public function getAttributeNode( string $qualifiedName ) {
174 throw self::_unimplemented();
175 }
176
177 /**
178 * @param ?string $namespace
179 * @param string $localName
180 * @return Attr|null
181 */
182 public function getAttributeNodeNS( ?string $namespace, string $localName ) {
183 throw self::_unimplemented();
184 }
185
186 /**
187 * @param Attr $attr
188 * @return Attr|null
189 */
190 public function setAttributeNode( /* Attr */ $attr ) {
191 throw self::_unimplemented();
192 }
193
194 /**
195 * @param Attr $attr
196 * @return Attr|null
197 */
198 public function setAttributeNodeNS( /* Attr */ $attr ) {
199 throw self::_unimplemented();
200 }
201
202 /**
203 * @param Attr $attr
204 * @return Attr
205 */
206 public function removeAttributeNode( /* Attr */ $attr ) {
207 throw self::_unimplemented();
208 }
209
210 /**
211 * @param ShadowRootInit|associative-array $init
212 * @return ShadowRoot
213 */
214 public function attachShadow( /* mixed */ $init ) {
215 throw self::_unimplemented();
216 }
217
218 /**
219 * @return ShadowRoot|null
220 */
221 public function getShadowRoot() {
222 throw self::_unimplemented();
223 }
224
225 /**
226 * @param string $selectors
227 * @return \Wikimedia\IDLeDOM\Element|null
228 */
229 public function closest( string $selectors ) {
230 throw self::_unimplemented();
231 }
232
233 /**
234 * @param string $selectors
235 * @return bool
236 */
237 public function matches( string $selectors ): bool {
238 throw self::_unimplemented();
239 }
240
241 /**
242 * @param string $selectors
243 * @return bool
244 */
245 public function webkitMatchesSelector( string $selectors ): bool {
246 throw self::_unimplemented();
247 }
248
249 /**
250 * @param string $qualifiedName
251 * @return HTMLCollection
252 */
253 public function getElementsByTagName( string $qualifiedName ) {
254 throw self::_unimplemented();
255 }
256
257 /**
258 * @param ?string $namespace
259 * @param string $localName
260 * @return HTMLCollection
261 */
262 public function getElementsByTagNameNS( ?string $namespace, string $localName ) {
263 throw self::_unimplemented();
264 }
265
266 /**
267 * @param string $classNames
268 * @return HTMLCollection
269 */
270 public function getElementsByClassName( string $classNames ) {
271 throw self::_unimplemented();
272 }
273
274 /**
275 * @param string $where
276 * @param \Wikimedia\IDLeDOM\Element $element
277 * @return \Wikimedia\IDLeDOM\Element|null
278 */
279 public function insertAdjacentElement( string $where, /* \Wikimedia\IDLeDOM\Element */ $element ) {
280 throw self::_unimplemented();
281 }
282
283 /**
284 * @param string $where
285 * @param string $data
286 * @return void
287 */
288 public function insertAdjacentText( string $where, string $data ): void {
289 throw self::_unimplemented();
290 }
291
292 /**
293 * @return string
294 */
295 public function getOuterHTML(): string {
296 throw self::_unimplemented();
297 }
298
299 /**
300 * @param ?string $val
301 */
302 public function setOuterHTML( ?string $val ): void {
303 throw self::_unimplemented();
304 }
305
306 /**
307 * @param string $position
308 * @param string $text
309 * @return void
310 */
311 public function insertAdjacentHTML( string $position, string $text ): void {
312 throw self::_unimplemented();
313 }
314
315 /**
316 * @param string $qualifiedName
317 * @param bool $isId
318 * @return void
319 */
320 public function setIdAttribute( string $qualifiedName, bool $isId ): void {
321 throw self::_unimplemented();
322 }
323
324 /**
325 * @param Attr $attr
326 * @param bool $isId
327 * @return void
328 */
329 public function setIdAttributeNode( /* Attr */ $attr, bool $isId ): void {
330 throw self::_unimplemented();
331 }
332
333 /**
334 * @param string $namespace
335 * @param string $qualifiedName
336 * @param bool $isId
337 * @return void
338 */
339 public function setIdAttributeNS( string $namespace, string $qualifiedName, bool $isId ): void {
340 throw self::_unimplemented();
341 }
342
343 }