Debian Codegraph @

vendor/wikimedia/idle-dom/src/Helper/HTMLAudioElement.php

raw
1 <?php
2
3 // AUTOMATICALLY GENERATED. DO NOT EDIT.
4 // Use `composer build` to regenerate.
5
6 namespace Wikimedia\IDLeDOM\Helper;
7
8 trait HTMLAudioElement {
9
10 // Underscore is used to avoid conflicts with DOM-reserved names
11 // phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
12 // phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
13
14 /**
15 * Handle an attempt to get a non-existing property on this
16 * object. The default implementation raises an exception
17 * but the implementor can choose a different behavior:
18 * return null (like JavaScript), dynamically create the
19 * property, etc.
20 * @param string $prop the name of the property requested
21 * @return mixed
22 */
23 abstract protected function _getMissingProp( string $prop );
24
25 /**
26 * Handle an attempt to set a non-existing property on this
27 * object. The default implementation raises an exception
28 * but the implementor can choose a different behavior:
29 * ignore the operation (like JavaScript), dynamically create
30 * the property, etc.
31 * @param string $prop the name of the property requested
32 * @param mixed $value the value to set
33 */
34 abstract protected function _setMissingProp( string $prop, $value ): void;
35
36 // phpcs:enable
37
38 /**
39 * @param string $name
40 * @return mixed
41 */
42 public function __get( string $name ) {
43 '@phan-var \Wikimedia\IDLeDOM\HTMLAudioElement $this';
44 // @var \Wikimedia\IDLeDOM\HTMLAudioElement $this
45 switch ( $name ) {
46 case "nodeType":
47 return $this->getNodeType();
48 case "nodeName":
49 return $this->getNodeName();
50 case "baseURI":
51 return $this->getBaseURI();
52 case "isConnected":
53 return $this->getIsConnected();
54 case "ownerDocument":
55 return $this->getOwnerDocument();
56 case "parentNode":
57 return $this->getParentNode();
58 case "parentElement":
59 return $this->getParentElement();
60 case "childNodes":
61 return $this->getChildNodes();
62 case "firstChild":
63 return $this->getFirstChild();
64 case "lastChild":
65 return $this->getLastChild();
66 case "previousSibling":
67 return $this->getPreviousSibling();
68 case "nextSibling":
69 return $this->getNextSibling();
70 case "nodeValue":
71 return $this->getNodeValue();
72 case "textContent":
73 return $this->getTextContent();
74 case "innerHTML":
75 return $this->getInnerHTML();
76 case "previousElementSibling":
77 return $this->getPreviousElementSibling();
78 case "nextElementSibling":
79 return $this->getNextElementSibling();
80 case "children":
81 return $this->getChildren();
82 case "firstElementChild":
83 return $this->getFirstElementChild();
84 case "lastElementChild":
85 return $this->getLastElementChild();
86 case "childElementCount":
87 return $this->getChildElementCount();
88 case "assignedSlot":
89 return $this->getAssignedSlot();
90 case "namespaceURI":
91 return $this->getNamespaceURI();
92 case "prefix":
93 return $this->getPrefix();
94 case "localName":
95 return $this->getLocalName();
96 case "tagName":
97 return $this->getTagName();
98 case "id":
99 return $this->getId();
100 case "className":
101 return $this->getClassName();
102 case "classList":
103 return $this->getClassList();
104 case "slot":
105 return $this->getSlot();
106 case "attributes":
107 return $this->getAttributes();
108 case "shadowRoot":
109 return $this->getShadowRoot();
110 case "outerHTML":
111 return $this->getOuterHTML();
112 case "style":
113 return $this->getStyle();
114 case "contentEditable":
115 return $this->getContentEditable();
116 case "enterKeyHint":
117 return $this->getEnterKeyHint();
118 case "isContentEditable":
119 return $this->getIsContentEditable();
120 case "inputMode":
121 return $this->getInputMode();
122 case "onload":
123 return $this->getOnload();
124 case "dataset":
125 return $this->getDataset();
126 case "nonce":
127 return $this->getNonce();
128 case "tabIndex":
129 return $this->getTabIndex();
130 case "title":
131 return $this->getTitle();
132 case "lang":
133 return $this->getLang();
134 case "translate":
135 return $this->getTranslate();
136 case "dir":
137 return $this->getDir();
138 case "hidden":
139 return $this->getHidden();
140 case "accessKey":
141 return $this->getAccessKey();
142 case "accessKeyLabel":
143 return $this->getAccessKeyLabel();
144 case "draggable":
145 return $this->getDraggable();
146 case "spellcheck":
147 return $this->getSpellcheck();
148 case "autocapitalize":
149 return $this->getAutocapitalize();
150 case "innerText":
151 return $this->getInnerText();
152 case "offsetParent":
153 return $this->getOffsetParent();
154 case "offsetTop":
155 return $this->getOffsetTop();
156 case "offsetLeft":
157 return $this->getOffsetLeft();
158 case "offsetWidth":
159 return $this->getOffsetWidth();
160 case "offsetHeight":
161 return $this->getOffsetHeight();
162 case "crossOrigin":
163 return $this->getCrossOrigin();
164 case "src":
165 return $this->getSrc();
166 case "currentSrc":
167 return $this->getCurrentSrc();
168 case "networkState":
169 return $this->getNetworkState();
170 case "preload":
171 return $this->getPreload();
172 case "buffered":
173 return $this->getBuffered();
174 case "readyState":
175 return $this->getReadyState();
176 case "seeking":
177 return $this->getSeeking();
178 case "currentTime":
179 return $this->getCurrentTime();
180 case "duration":
181 return $this->getDuration();
182 case "paused":
183 return $this->getPaused();
184 case "defaultPlaybackRate":
185 return $this->getDefaultPlaybackRate();
186 case "playbackRate":
187 return $this->getPlaybackRate();
188 case "played":
189 return $this->getPlayed();
190 case "seekable":
191 return $this->getSeekable();
192 case "ended":
193 return $this->getEnded();
194 case "autoplay":
195 return $this->getAutoplay();
196 case "loop":
197 return $this->getLoop();
198 case "controls":
199 return $this->getControls();
200 case "volume":
201 return $this->getVolume();
202 case "muted":
203 return $this->getMuted();
204 case "defaultMuted":
205 return $this->getDefaultMuted();
206 case "audioTracks":
207 return $this->getAudioTracks();
208 case "videoTracks":
209 return $this->getVideoTracks();
210 case "textTracks":
211 return $this->getTextTracks();
212 default:
213 break;
214 }
215 '@phan-var \Wikimedia\IDLeDOM\Helper\HTMLAudioElement $this';
216 // @var \Wikimedia\IDLeDOM\Helper\HTMLAudioElement $this
217 return $this->_getMissingProp( $name );
218 }
219
220 /**
221 * @param string $name
222 * @return bool
223 */
224 public function __isset( string $name ): bool {
225 '@phan-var \Wikimedia\IDLeDOM\HTMLAudioElement $this';
226 // @var \Wikimedia\IDLeDOM\HTMLAudioElement $this
227 switch ( $name ) {
228 case "nodeType":
229 return true;
230 case "nodeName":
231 return true;
232 case "baseURI":
233 return true;
234 case "isConnected":
235 return true;
236 case "ownerDocument":
237 return $this->getOwnerDocument() !== null;
238 case "parentNode":
239 return $this->getParentNode() !== null;
240 case "parentElement":
241 return $this->getParentElement() !== null;
242 case "childNodes":
243 return true;
244 case "firstChild":
245 return $this->getFirstChild() !== null;
246 case "lastChild":
247 return $this->getLastChild() !== null;
248 case "previousSibling":
249 return $this->getPreviousSibling() !== null;
250 case "nextSibling":
251 return $this->getNextSibling() !== null;
252 case "nodeValue":
253 return $this->getNodeValue() !== null;
254 case "textContent":
255 return $this->getTextContent() !== null;
256 case "innerHTML":
257 return true;
258 case "previousElementSibling":
259 return $this->getPreviousElementSibling() !== null;
260 case "nextElementSibling":
261 return $this->getNextElementSibling() !== null;
262 case "children":
263 return true;
264 case "firstElementChild":
265 return $this->getFirstElementChild() !== null;
266 case "lastElementChild":
267 return $this->getLastElementChild() !== null;
268 case "childElementCount":
269 return true;
270 case "assignedSlot":
271 return $this->getAssignedSlot() !== null;
272 case "namespaceURI":
273 return $this->getNamespaceURI() !== null;
274 case "prefix":
275 return $this->getPrefix() !== null;
276 case "localName":
277 return true;
278 case "tagName":
279 return true;
280 case "id":
281 return true;
282 case "className":
283 return true;
284 case "classList":
285 return true;
286 case "slot":
287 return true;
288 case "attributes":
289 return true;
290 case "shadowRoot":
291 return $this->getShadowRoot() !== null;
292 case "outerHTML":
293 return true;
294 case "style":
295 return true;
296 case "contentEditable":
297 return true;
298 case "enterKeyHint":
299 return true;
300 case "isContentEditable":
301 return true;
302 case "inputMode":
303 return true;
304 case "onload":
305 return true;
306 case "dataset":
307 return true;
308 case "nonce":
309 return true;
310 case "tabIndex":
311 return true;
312 case "title":
313 return true;
314 case "lang":
315 return true;
316 case "translate":
317 return true;
318 case "dir":
319 return true;
320 case "hidden":
321 return true;
322 case "accessKey":
323 return true;
324 case "accessKeyLabel":
325 return true;
326 case "draggable":
327 return true;
328 case "spellcheck":
329 return true;
330 case "autocapitalize":
331 return true;
332 case "innerText":
333 return true;
334 case "offsetParent":
335 return $this->getOffsetParent() !== null;
336 case "offsetTop":
337 return true;
338 case "offsetLeft":
339 return true;
340 case "offsetWidth":
341 return true;
342 case "offsetHeight":
343 return true;
344 case "crossOrigin":
345 return $this->getCrossOrigin() !== null;
346 case "src":
347 return true;
348 case "currentSrc":
349 return true;
350 case "networkState":
351 return true;
352 case "preload":
353 return true;
354 case "buffered":
355 return true;
356 case "readyState":
357 return true;
358 case "seeking":
359 return true;
360 case "currentTime":
361 return true;
362 case "duration":
363 return true;
364 case "paused":
365 return true;
366 case "defaultPlaybackRate":
367 return true;
368 case "playbackRate":
369 return true;
370 case "played":
371 return true;
372 case "seekable":
373 return true;
374 case "ended":
375 return true;
376 case "autoplay":
377 return true;
378 case "loop":
379 return true;
380 case "controls":
381 return true;
382 case "volume":
383 return true;
384 case "muted":
385 return true;
386 case "defaultMuted":
387 return true;
388 case "audioTracks":
389 return true;
390 case "videoTracks":
391 return true;
392 case "textTracks":
393 return true;
394 default:
395 break;
396 }
397 return false;
398 }
399
400 /**
401 * @param string $name
402 * @param mixed $value
403 */
404 public function __set( string $name, $value ): void {
405 '@phan-var \Wikimedia\IDLeDOM\HTMLAudioElement $this';
406 // @var \Wikimedia\IDLeDOM\HTMLAudioElement $this
407 switch ( $name ) {
408 case "nodeValue":
409 $this->setNodeValue( $value );
410 return;
411 case "textContent":
412 $this->setTextContent( $value );
413 return;
414 case "innerHTML":
415 $this->setInnerHTML( $value );
416 return;
417 case "id":
418 $this->setId( $value );
419 return;
420 case "className":
421 $this->setClassName( $value );
422 return;
423 case "classList":
424 $this->setClassList( $value );
425 return;
426 case "slot":
427 $this->setSlot( $value );
428 return;
429 case "outerHTML":
430 $this->setOuterHTML( $value );
431 return;
432 case "style":
433 $this->setStyle( $value );
434 return;
435 case "contentEditable":
436 $this->setContentEditable( $value );
437 return;
438 case "enterKeyHint":
439 $this->setEnterKeyHint( $value );
440 return;
441 case "inputMode":
442 $this->setInputMode( $value );
443 return;
444 case "onload":
445 $this->setOnload( $value );
446 return;
447 case "nonce":
448 $this->setNonce( $value );
449 return;
450 case "tabIndex":
451 $this->setTabIndex( $value );
452 return;
453 case "title":
454 $this->setTitle( $value );
455 return;
456 case "lang":
457 $this->setLang( $value );
458 return;
459 case "translate":
460 $this->setTranslate( $value );
461 return;
462 case "dir":
463 $this->setDir( $value );
464 return;
465 case "hidden":
466 $this->setHidden( $value );
467 return;
468 case "accessKey":
469 $this->setAccessKey( $value );
470 return;
471 case "draggable":
472 $this->setDraggable( $value );
473 return;
474 case "spellcheck":
475 $this->setSpellcheck( $value );
476 return;
477 case "autocapitalize":
478 $this->setAutocapitalize( $value );
479 return;
480 case "innerText":
481 $this->setInnerText( $value );
482 return;
483 case "crossOrigin":
484 $this->setCrossOrigin( $value );
485 return;
486 case "src":
487 $this->setSrc( $value );
488 return;
489 case "preload":
490 $this->setPreload( $value );
491 return;
492 case "currentTime":
493 $this->setCurrentTime( $value );
494 return;
495 case "defaultPlaybackRate":
496 $this->setDefaultPlaybackRate( $value );
497 return;
498 case "playbackRate":
499 $this->setPlaybackRate( $value );
500 return;
501 case "autoplay":
502 $this->setAutoplay( $value );
503 return;
504 case "loop":
505 $this->setLoop( $value );
506 return;
507 case "controls":
508 $this->setControls( $value );
509 return;
510 case "volume":
511 $this->setVolume( $value );
512 return;
513 case "muted":
514 $this->setMuted( $value );
515 return;
516 case "defaultMuted":
517 $this->setDefaultMuted( $value );
518 return;
519 default:
520 break;
521 }
522 '@phan-var \Wikimedia\IDLeDOM\Helper\HTMLAudioElement $this';
523 // @var \Wikimedia\IDLeDOM\Helper\HTMLAudioElement $this
524 $this->_setMissingProp( $name, $value );
525 }
526
527 /**
528 * @param string $name
529 */
530 public function __unset( string $name ): void {
531 '@phan-var \Wikimedia\IDLeDOM\HTMLAudioElement $this';
532 // @var \Wikimedia\IDLeDOM\HTMLAudioElement $this
533 switch ( $name ) {
534 case "nodeType":
535 break;
536 case "nodeName":
537 break;
538 case "baseURI":
539 break;
540 case "isConnected":
541 break;
542 case "ownerDocument":
543 break;
544 case "parentNode":
545 break;
546 case "parentElement":
547 break;
548 case "childNodes":
549 break;
550 case "firstChild":
551 break;
552 case "lastChild":
553 break;
554 case "previousSibling":
555 break;
556 case "nextSibling":
557 break;
558 case "nodeValue":
559 $this->setNodeValue( null );
560 return;
561 case "textContent":
562 $this->setTextContent( null );
563 return;
564 case "innerHTML":
565 break;
566 case "previousElementSibling":
567 break;
568 case "nextElementSibling":
569 break;
570 case "children":
571 break;
572 case "firstElementChild":
573 break;
574 case "lastElementChild":
575 break;
576 case "childElementCount":
577 break;
578 case "assignedSlot":
579 break;
580 case "namespaceURI":
581 break;
582 case "prefix":
583 break;
584 case "localName":
585 break;
586 case "tagName":
587 break;
588 case "id":
589 break;
590 case "className":
591 break;
592 case "classList":
593 break;
594 case "slot":
595 break;
596 case "attributes":
597 break;
598 case "shadowRoot":
599 break;
600 case "outerHTML":
601 break;
602 case "style":
603 break;
604 case "contentEditable":
605 break;
606 case "enterKeyHint":
607 break;
608 case "isContentEditable":
609 break;
610 case "inputMode":
611 break;
612 case "onload":
613 break;
614 case "dataset":
615 break;
616 case "nonce":
617 break;
618 case "tabIndex":
619 break;
620 case "title":
621 break;
622 case "lang":
623 break;
624 case "translate":
625 break;
626 case "dir":
627 break;
628 case "hidden":
629 break;
630 case "accessKey":
631 break;
632 case "accessKeyLabel":
633 break;
634 case "draggable":
635 break;
636 case "spellcheck":
637 break;
638 case "autocapitalize":
639 break;
640 case "innerText":
641 break;
642 case "offsetParent":
643 break;
644 case "offsetTop":
645 break;
646 case "offsetLeft":
647 break;
648 case "offsetWidth":
649 break;
650 case "offsetHeight":
651 break;
652 case "crossOrigin":
653 $this->setCrossOrigin( null );
654 return;
655 case "src":
656 break;
657 case "currentSrc":
658 break;
659 case "networkState":
660 break;
661 case "preload":
662 break;
663 case "buffered":
664 break;
665 case "readyState":
666 break;
667 case "seeking":
668 break;
669 case "currentTime":
670 break;
671 case "duration":
672 break;
673 case "paused":
674 break;
675 case "defaultPlaybackRate":
676 break;
677 case "playbackRate":
678 break;
679 case "played":
680 break;
681 case "seekable":
682 break;
683 case "ended":
684 break;
685 case "autoplay":
686 break;
687 case "loop":
688 break;
689 case "controls":
690 break;
691 case "volume":
692 break;
693 case "muted":
694 break;
695 case "defaultMuted":
696 break;
697 case "audioTracks":
698 break;
699 case "videoTracks":
700 break;
701 case "textTracks":
702 break;
703 default:
704 return;
705 }
706 $trace = debug_backtrace();
707 while (
708 count( $trace ) > 0 &&
709 $trace[0]['function'] !== "__unset"
710 ) {
711 array_shift( $trace );
712 }
713 trigger_error(
714 'Undefined property' .
715 ' via ' . ( $trace[0]['function'] ?? '' ) . '(): ' . $name .
716 ' in ' . ( $trace[0]['file'] ?? '' ) .
717 ' on line ' . ( $trace[0]['line'] ?? '' ),
718 E_USER_NOTICE
719 );
720 }
721
722 }