| 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 |
|
| 11 |
trait NamedNodeMap { |
| 12 |
|
| 13 |
// Underscore is used to avoid conflicts with DOM-reserved names |
| 14 |
// phpcs:disable PSR2.Methods.MethodDeclaration.Underscore |
| 15 |
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName |
| 16 |
|
| 17 |
/** |
| 18 |
* @return Exception |
| 19 |
*/ |
| 20 |
abstract protected function _unimplemented(): Exception; |
| 21 |
|
| 22 |
// phpcs:enable |
| 23 |
|
| 24 |
/** |
| 25 |
* @return int |
| 26 |
*/ |
| 27 |
public function getLength(): int { |
| 28 |
throw self::_unimplemented(); |
| 29 |
} |
| 30 |
|
| 31 |
/** |
| 32 |
* @param int $index |
| 33 |
* @return Attr|null |
| 34 |
*/ |
| 35 |
public function item( int $index ) { |
| 36 |
throw self::_unimplemented(); |
| 37 |
} |
| 38 |
|
| 39 |
/** |
| 40 |
* @param string $qualifiedName |
| 41 |
* @return Attr|null |
| 42 |
*/ |
| 43 |
public function getNamedItem( string $qualifiedName ) { |
| 44 |
throw self::_unimplemented(); |
| 45 |
} |
| 46 |
|
| 47 |
/** |
| 48 |
* @param ?string $namespace |
| 49 |
* @param string $localName |
| 50 |
* @return Attr|null |
| 51 |
*/ |
| 52 |
public function getNamedItemNS( ?string $namespace, string $localName ) { |
| 53 |
throw self::_unimplemented(); |
| 54 |
} |
| 55 |
|
| 56 |
/** |
| 57 |
* @param Attr $attr |
| 58 |
* @return Attr|null |
| 59 |
*/ |
| 60 |
public function setNamedItem( /* Attr */ $attr ) { |
| 61 |
throw self::_unimplemented(); |
| 62 |
} |
| 63 |
|
| 64 |
/** |
| 65 |
* @param Attr $attr |
| 66 |
* @return Attr|null |
| 67 |
*/ |
| 68 |
public function setNamedItemNS( /* Attr */ $attr ) { |
| 69 |
throw self::_unimplemented(); |
| 70 |
} |
| 71 |
|
| 72 |
/** |
| 73 |
* @param string $qualifiedName |
| 74 |
* @return Attr |
| 75 |
*/ |
| 76 |
public function removeNamedItem( string $qualifiedName ) { |
| 77 |
throw self::_unimplemented(); |
| 78 |
} |
| 79 |
|
| 80 |
/** |
| 81 |
* @param ?string $namespace |
| 82 |
* @param string $localName |
| 83 |
* @return Attr |
| 84 |
*/ |
| 85 |
public function removeNamedItemNS( ?string $namespace, string $localName ) { |
| 86 |
throw self::_unimplemented(); |
| 87 |
} |
| 88 |
|
| 89 |
} |