| 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\Element; |
| 10 |
use Wikimedia\IDLeDOM\HTMLCollection; |
| 11 |
use Wikimedia\IDLeDOM\Node; |
| 12 |
use Wikimedia\IDLeDOM\NodeList; |
| 13 |
|
| 14 |
trait ParentNode { |
| 15 |
|
| 16 |
// Underscore is used to avoid conflicts with DOM-reserved names |
| 17 |
// phpcs:disable PSR2.Methods.MethodDeclaration.Underscore |
| 18 |
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName |
| 19 |
|
| 20 |
/** |
| 21 |
* @return Exception |
| 22 |
*/ |
| 23 |
abstract protected function _unimplemented(): Exception; |
| 24 |
|
| 25 |
// phpcs:enable |
| 26 |
|
| 27 |
/** |
| 28 |
* @return HTMLCollection |
| 29 |
*/ |
| 30 |
public function getChildren() { |
| 31 |
throw self::_unimplemented(); |
| 32 |
} |
| 33 |
|
| 34 |
/** |
| 35 |
* @return Element|null |
| 36 |
*/ |
| 37 |
public function getFirstElementChild() { |
| 38 |
throw self::_unimplemented(); |
| 39 |
} |
| 40 |
|
| 41 |
/** |
| 42 |
* @return Element|null |
| 43 |
*/ |
| 44 |
public function getLastElementChild() { |
| 45 |
throw self::_unimplemented(); |
| 46 |
} |
| 47 |
|
| 48 |
/** |
| 49 |
* @return int |
| 50 |
*/ |
| 51 |
public function getChildElementCount(): int { |
| 52 |
throw self::_unimplemented(); |
| 53 |
} |
| 54 |
|
| 55 |
/** |
| 56 |
* @param Node|string ...$nodes |
| 57 |
* @return void |
| 58 |
*/ |
| 59 |
public function prepend( /* mixed */ ...$nodes ): void { |
| 60 |
throw self::_unimplemented(); |
| 61 |
} |
| 62 |
|
| 63 |
/** |
| 64 |
* @param Node|string ...$nodes |
| 65 |
* @return void |
| 66 |
*/ |
| 67 |
public function append( /* mixed */ ...$nodes ): void { |
| 68 |
throw self::_unimplemented(); |
| 69 |
} |
| 70 |
|
| 71 |
/** |
| 72 |
* @param Node|string ...$nodes |
| 73 |
* @return void |
| 74 |
*/ |
| 75 |
public function replaceChildren( /* mixed */ ...$nodes ): void { |
| 76 |
throw self::_unimplemented(); |
| 77 |
} |
| 78 |
|
| 79 |
/** |
| 80 |
* @param string $selectors |
| 81 |
* @return Element|null |
| 82 |
*/ |
| 83 |
public function querySelector( string $selectors ) { |
| 84 |
throw self::_unimplemented(); |
| 85 |
} |
| 86 |
|
| 87 |
/** |
| 88 |
* @param string $selectors |
| 89 |
* @return NodeList |
| 90 |
*/ |
| 91 |
public function querySelectorAll( string $selectors ) { |
| 92 |
throw self::_unimplemented(); |
| 93 |
} |
| 94 |
|
| 95 |
} |