Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 702
0.00% covered (danger)
0.00%
0 / 27
CRAP
0.00% covered (danger)
0.00%
0 / 1
HTMLAnchorElement
0.00% covered (danger)
0.00%
0 / 702
0.00% covered (danger)
0.00%
0 / 27
117306
0.00% covered (danger)
0.00%
0 / 1
 _getMissingProp
n/a
0 / 0
n/a
0 / 0
0
 _setMissingProp
n/a
0 / 0
n/a
0 / 0
0
 __get
0.00% covered (danger)
0.00%
0 / 168
0.00% covered (danger)
0.00%
0 / 1
7310
 __isset
0.00% covered (danger)
0.00%
0 / 168
0.00% covered (danger)
0.00%
0 / 1
7310
 __set
0.00% covered (danger)
0.00%
0 / 149
0.00% covered (danger)
0.00%
0 / 1
2652
 __unset
0.00% covered (danger)
0.00%
0 / 180
0.00% covered (danger)
0.00%
0 / 1
7656
 setRelList
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getReferrerPolicy
0.00% covered (danger)
0.00%
0 / 15
0.00% covered (danger)
0.00%
0 / 1
156
 setReferrerPolicy
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getTarget
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setTarget
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getDownload
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setDownload
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getRel
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setRel
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getHreflang
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setHreflang
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getType
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setType
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getCoords
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setCoords
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getCharset
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setCharset
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getName
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setName
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getRev
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setRev
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getShape
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setShape
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\Helper;
7
8trait HTMLAnchorElement {
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\HTMLAnchorElement $this';
44        // @var \Wikimedia\IDLeDOM\HTMLAnchorElement $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 "href":
163                return $this->getHref();
164            case "origin":
165                return $this->getOrigin();
166            case "protocol":
167                return $this->getProtocol();
168            case "username":
169                return $this->getUsername();
170            case "password":
171                return $this->getPassword();
172            case "host":
173                return $this->getHost();
174            case "hostname":
175                return $this->getHostname();
176            case "port":
177                return $this->getPort();
178            case "pathname":
179                return $this->getPathname();
180            case "search":
181                return $this->getSearch();
182            case "hash":
183                return $this->getHash();
184            case "referrerPolicy":
185                return $this->getReferrerPolicy();
186            case "target":
187                return $this->getTarget();
188            case "download":
189                return $this->getDownload();
190            case "ping":
191                return $this->getPing();
192            case "rel":
193                return $this->getRel();
194            case "relList":
195                return $this->getRelList();
196            case "hreflang":
197                return $this->getHreflang();
198            case "type":
199                return $this->getType();
200            case "text":
201                return $this->getText();
202            case "coords":
203                return $this->getCoords();
204            case "charset":
205                return $this->getCharset();
206            case "name":
207                return $this->getName();
208            case "rev":
209                return $this->getRev();
210            case "shape":
211                return $this->getShape();
212            default:
213                break;
214        }
215        '@phan-var \Wikimedia\IDLeDOM\Helper\HTMLAnchorElement $this';
216        // @var \Wikimedia\IDLeDOM\Helper\HTMLAnchorElement $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\HTMLAnchorElement $this';
226        // @var \Wikimedia\IDLeDOM\HTMLAnchorElement $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 "href":
345                return true;
346            case "origin":
347                return true;
348            case "protocol":
349                return true;
350            case "username":
351                return true;
352            case "password":
353                return true;
354            case "host":
355                return true;
356            case "hostname":
357                return true;
358            case "port":
359                return true;
360            case "pathname":
361                return true;
362            case "search":
363                return true;
364            case "hash":
365                return true;
366            case "referrerPolicy":
367                return true;
368            case "target":
369                return true;
370            case "download":
371                return true;
372            case "ping":
373                return true;
374            case "rel":
375                return true;
376            case "relList":
377                return true;
378            case "hreflang":
379                return true;
380            case "type":
381                return true;
382            case "text":
383                return true;
384            case "coords":
385                return true;
386            case "charset":
387                return true;
388            case "name":
389                return true;
390            case "rev":
391                return true;
392            case "shape":
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\HTMLAnchorElement $this';
406        // @var \Wikimedia\IDLeDOM\HTMLAnchorElement $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 "href":
484                $this->setHref( $value );
485                return;
486            case "protocol":
487                $this->setProtocol( $value );
488                return;
489            case "username":
490                $this->setUsername( $value );
491                return;
492            case "password":
493                $this->setPassword( $value );
494                return;
495            case "host":
496                $this->setHost( $value );
497                return;
498            case "hostname":
499                $this->setHostname( $value );
500                return;
501            case "port":
502                $this->setPort( $value );
503                return;
504            case "pathname":
505                $this->setPathname( $value );
506                return;
507            case "search":
508                $this->setSearch( $value );
509                return;
510            case "hash":
511                $this->setHash( $value );
512                return;
513            case "referrerPolicy":
514                $this->setReferrerPolicy( $value );
515                return;
516            case "target":
517                $this->setTarget( $value );
518                return;
519            case "download":
520                $this->setDownload( $value );
521                return;
522            case "ping":
523                $this->setPing( $value );
524                return;
525            case "rel":
526                $this->setRel( $value );
527                return;
528            case "relList":
529                $this->setRelList( $value );
530                return;
531            case "hreflang":
532                $this->setHreflang( $value );
533                return;
534            case "type":
535                $this->setType( $value );
536                return;
537            case "text":
538                $this->setText( $value );
539                return;
540            case "coords":
541                $this->setCoords( $value );
542                return;
543            case "charset":
544                $this->setCharset( $value );
545                return;
546            case "name":
547                $this->setName( $value );
548                return;
549            case "rev":
550                $this->setRev( $value );
551                return;
552            case "shape":
553                $this->setShape( $value );
554                return;
555            default:
556                break;
557        }
558        '@phan-var \Wikimedia\IDLeDOM\Helper\HTMLAnchorElement $this';
559        // @var \Wikimedia\IDLeDOM\Helper\HTMLAnchorElement $this
560        $this->_setMissingProp( $name, $value );
561    }
562
563    /**
564     * @param string $name
565     */
566    public function __unset( string $name ): void {
567        '@phan-var \Wikimedia\IDLeDOM\HTMLAnchorElement $this';
568        // @var \Wikimedia\IDLeDOM\HTMLAnchorElement $this
569        switch ( $name ) {
570            case "nodeType":
571                break;
572            case "nodeName":
573                break;
574            case "baseURI":
575                break;
576            case "isConnected":
577                break;
578            case "ownerDocument":
579                break;
580            case "parentNode":
581                break;
582            case "parentElement":
583                break;
584            case "childNodes":
585                break;
586            case "firstChild":
587                break;
588            case "lastChild":
589                break;
590            case "previousSibling":
591                break;
592            case "nextSibling":
593                break;
594            case "nodeValue":
595                $this->setNodeValue( null );
596                return;
597            case "textContent":
598                $this->setTextContent( null );
599                return;
600            case "innerHTML":
601                break;
602            case "previousElementSibling":
603                break;
604            case "nextElementSibling":
605                break;
606            case "children":
607                break;
608            case "firstElementChild":
609                break;
610            case "lastElementChild":
611                break;
612            case "childElementCount":
613                break;
614            case "assignedSlot":
615                break;
616            case "namespaceURI":
617                break;
618            case "prefix":
619                break;
620            case "localName":
621                break;
622            case "tagName":
623                break;
624            case "id":
625                break;
626            case "className":
627                break;
628            case "classList":
629                break;
630            case "slot":
631                break;
632            case "attributes":
633                break;
634            case "shadowRoot":
635                break;
636            case "outerHTML":
637                break;
638            case "style":
639                break;
640            case "contentEditable":
641                break;
642            case "enterKeyHint":
643                break;
644            case "isContentEditable":
645                break;
646            case "inputMode":
647                break;
648            case "onload":
649                break;
650            case "dataset":
651                break;
652            case "nonce":
653                break;
654            case "tabIndex":
655                break;
656            case "title":
657                break;
658            case "lang":
659                break;
660            case "translate":
661                break;
662            case "dir":
663                break;
664            case "hidden":
665                break;
666            case "accessKey":
667                break;
668            case "accessKeyLabel":
669                break;
670            case "draggable":
671                break;
672            case "spellcheck":
673                break;
674            case "autocapitalize":
675                break;
676            case "innerText":
677                break;
678            case "offsetParent":
679                break;
680            case "offsetTop":
681                break;
682            case "offsetLeft":
683                break;
684            case "offsetWidth":
685                break;
686            case "offsetHeight":
687                break;
688            case "href":
689                break;
690            case "origin":
691                break;
692            case "protocol":
693                break;
694            case "username":
695                break;
696            case "password":
697                break;
698            case "host":
699                break;
700            case "hostname":
701                break;
702            case "port":
703                break;
704            case "pathname":
705                break;
706            case "search":
707                break;
708            case "hash":
709                break;
710            case "referrerPolicy":
711                break;
712            case "target":
713                break;
714            case "download":
715                break;
716            case "ping":
717                break;
718            case "rel":
719                break;
720            case "relList":
721                break;
722            case "hreflang":
723                break;
724            case "type":
725                break;
726            case "text":
727                break;
728            case "coords":
729                break;
730            case "charset":
731                break;
732            case "name":
733                break;
734            case "rev":
735                break;
736            case "shape":
737                break;
738            default:
739                return;
740        }
741        $trace = debug_backtrace();
742        while (
743            count( $trace ) > 0 &&
744            $trace[0]['function'] !== "__unset"
745        ) {
746            array_shift( $trace );
747        }
748        trigger_error(
749            'Undefined property' .
750            ' via ' . ( $trace[0]['function'] ?? '' ) . '(): ' . $name .
751            ' in ' . ( $trace[0]['file'] ?? '' ) .
752            ' on line ' . ( $trace[0]['line'] ?? '' ),
753            E_USER_NOTICE
754        );
755    }
756
757    /**
758     * @param string $val
759     */
760    public function setRelList( string $val ): void {
761        '@phan-var \Wikimedia\IDLeDOM\HTMLAnchorElement $this';
762        // @var \Wikimedia\IDLeDOM\HTMLAnchorElement $this
763        $this->getRelList()->setValue( $val );
764    }
765
766    /**
767     * @return string
768     */
769    public function getReferrerPolicy(): string {
770        '@phan-var \Wikimedia\IDLeDOM\Element $this';
771        // @var \Wikimedia\IDLeDOM\Element $this
772        $val = $this->getAttribute( 'referrerpolicy' );
773        if ( $val !== null ) {
774            $val = strtr( $val, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz' );
775            switch ( $val ) {
776                case '':
777                case 'no-referrer':
778                case 'no-referrer-when-downgrade':
779                case 'same-origin':
780                case 'origin':
781                case 'strict-origin':
782                case 'origin-when-cross-origin':
783                case 'strict-origin-when-cross-origin':
784                case 'unsafe-url':
785                    return $val;
786                default:
787                    return '';
788            }
789        }
790        return '';
791    }
792
793    /**
794     * @param string $val
795     */
796    public function setReferrerPolicy( string $val ): void {
797        '@phan-var \Wikimedia\IDLeDOM\Element $this';
798        // @var \Wikimedia\IDLeDOM\Element $this
799        $this->setAttribute( 'referrerpolicy', $val );
800    }
801
802    /**
803     * @return string
804     */
805    public function getTarget(): string {
806        '@phan-var \Wikimedia\IDLeDOM\Element $this';
807        // @var \Wikimedia\IDLeDOM\Element $this
808        return $this->getAttribute( 'target' ) ?? '';
809    }
810
811    /**
812     * @param string $val
813     */
814    public function setTarget( string $val ): void {
815        '@phan-var \Wikimedia\IDLeDOM\Element $this';
816        // @var \Wikimedia\IDLeDOM\Element $this
817        $this->setAttribute( 'target', $val );
818    }
819
820    /**
821     * @return string
822     */
823    public function getDownload(): string {
824        '@phan-var \Wikimedia\IDLeDOM\Element $this';
825        // @var \Wikimedia\IDLeDOM\Element $this
826        return $this->getAttribute( 'download' ) ?? '';
827    }
828
829    /**
830     * @param string $val
831     */
832    public function setDownload( string $val ): void {
833        '@phan-var \Wikimedia\IDLeDOM\Element $this';
834        // @var \Wikimedia\IDLeDOM\Element $this
835        $this->setAttribute( 'download', $val );
836    }
837
838    /**
839     * @return string
840     */
841    public function getRel(): string {
842        '@phan-var \Wikimedia\IDLeDOM\Element $this';
843        // @var \Wikimedia\IDLeDOM\Element $this
844        return $this->getAttribute( 'rel' ) ?? '';
845    }
846
847    /**
848     * @param string $val
849     */
850    public function setRel( string $val ): void {
851        '@phan-var \Wikimedia\IDLeDOM\Element $this';
852        // @var \Wikimedia\IDLeDOM\Element $this
853        $this->setAttribute( 'rel', $val );
854    }
855
856    /**
857     * @return string
858     */
859    public function getHreflang(): string {
860        '@phan-var \Wikimedia\IDLeDOM\Element $this';
861        // @var \Wikimedia\IDLeDOM\Element $this
862        return $this->getAttribute( 'hreflang' ) ?? '';
863    }
864
865    /**
866     * @param string $val
867     */
868    public function setHreflang( string $val ): void {
869        '@phan-var \Wikimedia\IDLeDOM\Element $this';
870        // @var \Wikimedia\IDLeDOM\Element $this
871        $this->setAttribute( 'hreflang', $val );
872    }
873
874    /**
875     * @return string
876     */
877    public function getType(): string {
878        '@phan-var \Wikimedia\IDLeDOM\Element $this';
879        // @var \Wikimedia\IDLeDOM\Element $this
880        return $this->getAttribute( 'type' ) ?? '';
881    }
882
883    /**
884     * @param string $val
885     */
886    public function setType( string $val ): void {
887        '@phan-var \Wikimedia\IDLeDOM\Element $this';
888        // @var \Wikimedia\IDLeDOM\Element $this
889        $this->setAttribute( 'type', $val );
890    }
891
892    /**
893     * @return string
894     */
895    public function getCoords(): string {
896        '@phan-var \Wikimedia\IDLeDOM\Element $this';
897        // @var \Wikimedia\IDLeDOM\Element $this
898        return $this->getAttribute( 'coords' ) ?? '';
899    }
900
901    /**
902     * @param string $val
903     */
904    public function setCoords( string $val ): void {
905        '@phan-var \Wikimedia\IDLeDOM\Element $this';
906        // @var \Wikimedia\IDLeDOM\Element $this
907        $this->setAttribute( 'coords', $val );
908    }
909
910    /**
911     * @return string
912     */
913    public function getCharset(): string {
914        '@phan-var \Wikimedia\IDLeDOM\Element $this';
915        // @var \Wikimedia\IDLeDOM\Element $this
916        return $this->getAttribute( 'charset' ) ?? '';
917    }
918
919    /**
920     * @param string $val
921     */
922    public function setCharset( string $val ): void {
923        '@phan-var \Wikimedia\IDLeDOM\Element $this';
924        // @var \Wikimedia\IDLeDOM\Element $this
925        $this->setAttribute( 'charset', $val );
926    }
927
928    /**
929     * @return string
930     */
931    public function getName(): string {
932        '@phan-var \Wikimedia\IDLeDOM\Element $this';
933        // @var \Wikimedia\IDLeDOM\Element $this
934        return $this->getAttribute( 'name' ) ?? '';
935    }
936
937    /**
938     * @param string $val
939     */
940    public function setName( string $val ): void {
941        '@phan-var \Wikimedia\IDLeDOM\Element $this';
942        // @var \Wikimedia\IDLeDOM\Element $this
943        $this->setAttribute( 'name', $val );
944    }
945
946    /**
947     * @return string
948     */
949    public function getRev(): string {
950        '@phan-var \Wikimedia\IDLeDOM\Element $this';
951        // @var \Wikimedia\IDLeDOM\Element $this
952        return $this->getAttribute( 'rev' ) ?? '';
953    }
954
955    /**
956     * @param string $val
957     */
958    public function setRev( string $val ): void {
959        '@phan-var \Wikimedia\IDLeDOM\Element $this';
960        // @var \Wikimedia\IDLeDOM\Element $this
961        $this->setAttribute( 'rev', $val );
962    }
963
964    /**
965     * @return string
966     */
967    public function getShape(): string {
968        '@phan-var \Wikimedia\IDLeDOM\Element $this';
969        // @var \Wikimedia\IDLeDOM\Element $this
970        return $this->getAttribute( 'shape' ) ?? '';
971    }
972
973    /**
974     * @param string $val
975     */
976    public function setShape( string $val ): void {
977        '@phan-var \Wikimedia\IDLeDOM\Element $this';
978        // @var \Wikimedia\IDLeDOM\Element $this
979        $this->setAttribute( 'shape', $val );
980    }
981
982}