Debian Codegraph @

vendor/wikimedia/idle-dom/src/Helper/HTMLTableSectionElement.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 HTMLTableSectionElement {
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\HTMLTableSectionElement $this';
44 // @var \Wikimedia\IDLeDOM\HTMLTableSectionElement $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 "rows":
163 return $this->getRows();
164 case "align":
165 return $this->getAlign();
166 case "ch":
167 return $this->getCh();
168 case "chOff":
169 return $this->getChOff();
170 case "vAlign":
171 return $this->getVAlign();
172 default:
173 break;
174 }
175 '@phan-var \Wikimedia\IDLeDOM\Helper\HTMLTableSectionElement $this';
176 // @var \Wikimedia\IDLeDOM\Helper\HTMLTableSectionElement $this
177 return $this->_getMissingProp( $name );
178 }
179
180 /**
181 * @param string $name
182 * @return bool
183 */
184 public function __isset( string $name ): bool {
185 '@phan-var \Wikimedia\IDLeDOM\HTMLTableSectionElement $this';
186 // @var \Wikimedia\IDLeDOM\HTMLTableSectionElement $this
187 switch ( $name ) {
188 case "nodeType":
189 return true;
190 case "nodeName":
191 return true;
192 case "baseURI":
193 return true;
194 case "isConnected":
195 return true;
196 case "ownerDocument":
197 return $this->getOwnerDocument() !== null;
198 case "parentNode":
199 return $this->getParentNode() !== null;
200 case "parentElement":
201 return $this->getParentElement() !== null;
202 case "childNodes":
203 return true;
204 case "firstChild":
205 return $this->getFirstChild() !== null;
206 case "lastChild":
207 return $this->getLastChild() !== null;
208 case "previousSibling":
209 return $this->getPreviousSibling() !== null;
210 case "nextSibling":
211 return $this->getNextSibling() !== null;
212 case "nodeValue":
213 return $this->getNodeValue() !== null;
214 case "textContent":
215 return $this->getTextContent() !== null;
216 case "innerHTML":
217 return true;
218 case "previousElementSibling":
219 return $this->getPreviousElementSibling() !== null;
220 case "nextElementSibling":
221 return $this->getNextElementSibling() !== null;
222 case "children":
223 return true;
224 case "firstElementChild":
225 return $this->getFirstElementChild() !== null;
226 case "lastElementChild":
227 return $this->getLastElementChild() !== null;
228 case "childElementCount":
229 return true;
230 case "assignedSlot":
231 return $this->getAssignedSlot() !== null;
232 case "namespaceURI":
233 return $this->getNamespaceURI() !== null;
234 case "prefix":
235 return $this->getPrefix() !== null;
236 case "localName":
237 return true;
238 case "tagName":
239 return true;
240 case "id":
241 return true;
242 case "className":
243 return true;
244 case "classList":
245 return true;
246 case "slot":
247 return true;
248 case "attributes":
249 return true;
250 case "shadowRoot":
251 return $this->getShadowRoot() !== null;
252 case "outerHTML":
253 return true;
254 case "style":
255 return true;
256 case "contentEditable":
257 return true;
258 case "enterKeyHint":
259 return true;
260 case "isContentEditable":
261 return true;
262 case "inputMode":
263 return true;
264 case "onload":
265 return true;
266 case "dataset":
267 return true;
268 case "nonce":
269 return true;
270 case "tabIndex":
271 return true;
272 case "title":
273 return true;
274 case "lang":
275 return true;
276 case "translate":
277 return true;
278 case "dir":
279 return true;
280 case "hidden":
281 return true;
282 case "accessKey":
283 return true;
284 case "accessKeyLabel":
285 return true;
286 case "draggable":
287 return true;
288 case "spellcheck":
289 return true;
290 case "autocapitalize":
291 return true;
292 case "innerText":
293 return true;
294 case "offsetParent":
295 return $this->getOffsetParent() !== null;
296 case "offsetTop":
297 return true;
298 case "offsetLeft":
299 return true;
300 case "offsetWidth":
301 return true;
302 case "offsetHeight":
303 return true;
304 case "rows":
305 return true;
306 case "align":
307 return true;
308 case "ch":
309 return true;
310 case "chOff":
311 return true;
312 case "vAlign":
313 return true;
314 default:
315 break;
316 }
317 return false;
318 }
319
320 /**
321 * @param string $name
322 * @param mixed $value
323 */
324 public function __set( string $name, $value ): void {
325 '@phan-var \Wikimedia\IDLeDOM\HTMLTableSectionElement $this';
326 // @var \Wikimedia\IDLeDOM\HTMLTableSectionElement $this
327 switch ( $name ) {
328 case "nodeValue":
329 $this->setNodeValue( $value );
330 return;
331 case "textContent":
332 $this->setTextContent( $value );
333 return;
334 case "innerHTML":
335 $this->setInnerHTML( $value );
336 return;
337 case "id":
338 $this->setId( $value );
339 return;
340 case "className":
341 $this->setClassName( $value );
342 return;
343 case "classList":
344 $this->setClassList( $value );
345 return;
346 case "slot":
347 $this->setSlot( $value );
348 return;
349 case "outerHTML":
350 $this->setOuterHTML( $value );
351 return;
352 case "style":
353 $this->setStyle( $value );
354 return;
355 case "contentEditable":
356 $this->setContentEditable( $value );
357 return;
358 case "enterKeyHint":
359 $this->setEnterKeyHint( $value );
360 return;
361 case "inputMode":
362 $this->setInputMode( $value );
363 return;
364 case "onload":
365 $this->setOnload( $value );
366 return;
367 case "nonce":
368 $this->setNonce( $value );
369 return;
370 case "tabIndex":
371 $this->setTabIndex( $value );
372 return;
373 case "title":
374 $this->setTitle( $value );
375 return;
376 case "lang":
377 $this->setLang( $value );
378 return;
379 case "translate":
380 $this->setTranslate( $value );
381 return;
382 case "dir":
383 $this->setDir( $value );
384 return;
385 case "hidden":
386 $this->setHidden( $value );
387 return;
388 case "accessKey":
389 $this->setAccessKey( $value );
390 return;
391 case "draggable":
392 $this->setDraggable( $value );
393 return;
394 case "spellcheck":
395 $this->setSpellcheck( $value );
396 return;
397 case "autocapitalize":
398 $this->setAutocapitalize( $value );
399 return;
400 case "innerText":
401 $this->setInnerText( $value );
402 return;
403 case "align":
404 $this->setAlign( $value );
405 return;
406 case "ch":
407 $this->setCh( $value );
408 return;
409 case "chOff":
410 $this->setChOff( $value );
411 return;
412 case "vAlign":
413 $this->setVAlign( $value );
414 return;
415 default:
416 break;
417 }
418 '@phan-var \Wikimedia\IDLeDOM\Helper\HTMLTableSectionElement $this';
419 // @var \Wikimedia\IDLeDOM\Helper\HTMLTableSectionElement $this
420 $this->_setMissingProp( $name, $value );
421 }
422
423 /**
424 * @param string $name
425 */
426 public function __unset( string $name ): void {
427 '@phan-var \Wikimedia\IDLeDOM\HTMLTableSectionElement $this';
428 // @var \Wikimedia\IDLeDOM\HTMLTableSectionElement $this
429 switch ( $name ) {
430 case "nodeType":
431 break;
432 case "nodeName":
433 break;
434 case "baseURI":
435 break;
436 case "isConnected":
437 break;
438 case "ownerDocument":
439 break;
440 case "parentNode":
441 break;
442 case "parentElement":
443 break;
444 case "childNodes":
445 break;
446 case "firstChild":
447 break;
448 case "lastChild":
449 break;
450 case "previousSibling":
451 break;
452 case "nextSibling":
453 break;
454 case "nodeValue":
455 $this->setNodeValue( null );
456 return;
457 case "textContent":
458 $this->setTextContent( null );
459 return;
460 case "innerHTML":
461 break;
462 case "previousElementSibling":
463 break;
464 case "nextElementSibling":
465 break;
466 case "children":
467 break;
468 case "firstElementChild":
469 break;
470 case "lastElementChild":
471 break;
472 case "childElementCount":
473 break;
474 case "assignedSlot":
475 break;
476 case "namespaceURI":
477 break;
478 case "prefix":
479 break;
480 case "localName":
481 break;
482 case "tagName":
483 break;
484 case "id":
485 break;
486 case "className":
487 break;
488 case "classList":
489 break;
490 case "slot":
491 break;
492 case "attributes":
493 break;
494 case "shadowRoot":
495 break;
496 case "outerHTML":
497 break;
498 case "style":
499 break;
500 case "contentEditable":
501 break;
502 case "enterKeyHint":
503 break;
504 case "isContentEditable":
505 break;
506 case "inputMode":
507 break;
508 case "onload":
509 break;
510 case "dataset":
511 break;
512 case "nonce":
513 break;
514 case "tabIndex":
515 break;
516 case "title":
517 break;
518 case "lang":
519 break;
520 case "translate":
521 break;
522 case "dir":
523 break;
524 case "hidden":
525 break;
526 case "accessKey":
527 break;
528 case "accessKeyLabel":
529 break;
530 case "draggable":
531 break;
532 case "spellcheck":
533 break;
534 case "autocapitalize":
535 break;
536 case "innerText":
537 break;
538 case "offsetParent":
539 break;
540 case "offsetTop":
541 break;
542 case "offsetLeft":
543 break;
544 case "offsetWidth":
545 break;
546 case "offsetHeight":
547 break;
548 case "rows":
549 break;
550 case "align":
551 break;
552 case "ch":
553 break;
554 case "chOff":
555 break;
556 case "vAlign":
557 break;
558 default:
559 return;
560 }
561 $trace = debug_backtrace();
562 while (
563 count( $trace ) > 0 &&
564 $trace[0]['function'] !== "__unset"
565 ) {
566 array_shift( $trace );
567 }
568 trigger_error(
569 'Undefined property' .
570 ' via ' . ( $trace[0]['function'] ?? '' ) . '(): ' . $name .
571 ' in ' . ( $trace[0]['file'] ?? '' ) .
572 ' on line ' . ( $trace[0]['line'] ?? '' ),
573 E_USER_NOTICE
574 );
575 }
576
577 /**
578 * @return string
579 */
580 public function getAlign(): string {
581 '@phan-var \Wikimedia\IDLeDOM\Element $this';
582 // @var \Wikimedia\IDLeDOM\Element $this
583 return $this->getAttribute( 'align' ) ?? '';
584 }
585
586 /**
587 * @param string $val
588 */
589 public function setAlign( string $val ): void {
590 '@phan-var \Wikimedia\IDLeDOM\Element $this';
591 // @var \Wikimedia\IDLeDOM\Element $this
592 $this->setAttribute( 'align', $val );
593 }
594
595 /**
596 * @return string
597 */
598 public function getCh(): string {
599 '@phan-var \Wikimedia\IDLeDOM\Element $this';
600 // @var \Wikimedia\IDLeDOM\Element $this
601 return $this->getAttribute( 'char' ) ?? '';
602 }
603
604 /**
605 * @param string $val
606 */
607 public function setCh( string $val ): void {
608 '@phan-var \Wikimedia\IDLeDOM\Element $this';
609 // @var \Wikimedia\IDLeDOM\Element $this
610 $this->setAttribute( 'char', $val );
611 }
612
613 /**
614 * @return string
615 */
616 public function getChOff(): string {
617 '@phan-var \Wikimedia\IDLeDOM\Element $this';
618 // @var \Wikimedia\IDLeDOM\Element $this
619 return $this->getAttribute( 'charoff' ) ?? '';
620 }
621
622 /**
623 * @param string $val
624 */
625 public function setChOff( string $val ): void {
626 '@phan-var \Wikimedia\IDLeDOM\Element $this';
627 // @var \Wikimedia\IDLeDOM\Element $this
628 $this->setAttribute( 'charoff', $val );
629 }
630
631 /**
632 * @return string
633 */
634 public function getVAlign(): string {
635 '@phan-var \Wikimedia\IDLeDOM\Element $this';
636 // @var \Wikimedia\IDLeDOM\Element $this
637 return $this->getAttribute( 'valign' ) ?? '';
638 }
639
640 /**
641 * @param string $val
642 */
643 public function setVAlign( string $val ): void {
644 '@phan-var \Wikimedia\IDLeDOM\Element $this';
645 // @var \Wikimedia\IDLeDOM\Element $this
646 $this->setAttribute( 'valign', $val );
647 }
648
649 }