| 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\DocumentFragment; |
| 10 |
use Wikimedia\IDLeDOM\Node; |
| 11 |
|
| 12 |
trait Range { |
| 13 |
|
| 14 |
// Underscore is used to avoid conflicts with DOM-reserved names |
| 15 |
// phpcs:disable PSR2.Methods.MethodDeclaration.Underscore |
| 16 |
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName |
| 17 |
|
| 18 |
/** |
| 19 |
* @return Exception |
| 20 |
*/ |
| 21 |
abstract protected function _unimplemented(): Exception; |
| 22 |
|
| 23 |
// phpcs:enable |
| 24 |
|
| 25 |
/** |
| 26 |
* @return Node |
| 27 |
*/ |
| 28 |
public function getCommonAncestorContainer() { |
| 29 |
throw self::_unimplemented(); |
| 30 |
} |
| 31 |
|
| 32 |
/** |
| 33 |
* @param Node $node |
| 34 |
* @param int $offset |
| 35 |
* @return void |
| 36 |
*/ |
| 37 |
public function setStart( /* Node */ $node, int $offset ): void { |
| 38 |
throw self::_unimplemented(); |
| 39 |
} |
| 40 |
|
| 41 |
/** |
| 42 |
* @param Node $node |
| 43 |
* @param int $offset |
| 44 |
* @return void |
| 45 |
*/ |
| 46 |
public function setEnd( /* Node */ $node, int $offset ): void { |
| 47 |
throw self::_unimplemented(); |
| 48 |
} |
| 49 |
|
| 50 |
/** |
| 51 |
* @param Node $node |
| 52 |
* @return void |
| 53 |
*/ |
| 54 |
public function setStartBefore( /* Node */ $node ): void { |
| 55 |
throw self::_unimplemented(); |
| 56 |
} |
| 57 |
|
| 58 |
/** |
| 59 |
* @param Node $node |
| 60 |
* @return void |
| 61 |
*/ |
| 62 |
public function setStartAfter( /* Node */ $node ): void { |
| 63 |
throw self::_unimplemented(); |
| 64 |
} |
| 65 |
|
| 66 |
/** |
| 67 |
* @param Node $node |
| 68 |
* @return void |
| 69 |
*/ |
| 70 |
public function setEndBefore( /* Node */ $node ): void { |
| 71 |
throw self::_unimplemented(); |
| 72 |
} |
| 73 |
|
| 74 |
/** |
| 75 |
* @param Node $node |
| 76 |
* @return void |
| 77 |
*/ |
| 78 |
public function setEndAfter( /* Node */ $node ): void { |
| 79 |
throw self::_unimplemented(); |
| 80 |
} |
| 81 |
|
| 82 |
/** |
| 83 |
* @param bool $toStart |
| 84 |
* @return void |
| 85 |
*/ |
| 86 |
public function collapse( bool $toStart = false ): void { |
| 87 |
throw self::_unimplemented(); |
| 88 |
} |
| 89 |
|
| 90 |
/** |
| 91 |
* @param Node $node |
| 92 |
* @return void |
| 93 |
*/ |
| 94 |
public function selectNode( /* Node */ $node ): void { |
| 95 |
throw self::_unimplemented(); |
| 96 |
} |
| 97 |
|
| 98 |
/** |
| 99 |
* @param Node $node |
| 100 |
* @return void |
| 101 |
*/ |
| 102 |
public function selectNodeContents( /* Node */ $node ): void { |
| 103 |
throw self::_unimplemented(); |
| 104 |
} |
| 105 |
|
| 106 |
/** |
| 107 |
* @param int $how |
| 108 |
* @param \Wikimedia\IDLeDOM\Range $sourceRange |
| 109 |
* @return int |
| 110 |
*/ |
| 111 |
public function compareBoundaryPoints( int $how, /* \Wikimedia\IDLeDOM\Range */ $sourceRange ): int { |
| 112 |
throw self::_unimplemented(); |
| 113 |
} |
| 114 |
|
| 115 |
/** |
| 116 |
* @return void |
| 117 |
*/ |
| 118 |
public function deleteContents(): void { |
| 119 |
throw self::_unimplemented(); |
| 120 |
} |
| 121 |
|
| 122 |
/** |
| 123 |
* @return DocumentFragment |
| 124 |
*/ |
| 125 |
public function extractContents() { |
| 126 |
throw self::_unimplemented(); |
| 127 |
} |
| 128 |
|
| 129 |
/** |
| 130 |
* @return DocumentFragment |
| 131 |
*/ |
| 132 |
public function cloneContents() { |
| 133 |
throw self::_unimplemented(); |
| 134 |
} |
| 135 |
|
| 136 |
/** |
| 137 |
* @param Node $node |
| 138 |
* @return void |
| 139 |
*/ |
| 140 |
public function insertNode( /* Node */ $node ): void { |
| 141 |
throw self::_unimplemented(); |
| 142 |
} |
| 143 |
|
| 144 |
/** |
| 145 |
* @param Node $newParent |
| 146 |
* @return void |
| 147 |
*/ |
| 148 |
public function surroundContents( /* Node */ $newParent ): void { |
| 149 |
throw self::_unimplemented(); |
| 150 |
} |
| 151 |
|
| 152 |
/** |
| 153 |
* @return \Wikimedia\IDLeDOM\Range |
| 154 |
*/ |
| 155 |
public function cloneRange() { |
| 156 |
throw self::_unimplemented(); |
| 157 |
} |
| 158 |
|
| 159 |
/** |
| 160 |
* @return void |
| 161 |
*/ |
| 162 |
public function detach(): void { |
| 163 |
throw self::_unimplemented(); |
| 164 |
} |
| 165 |
|
| 166 |
/** |
| 167 |
* @param Node $node |
| 168 |
* @param int $offset |
| 169 |
* @return bool |
| 170 |
*/ |
| 171 |
public function isPointInRange( /* Node */ $node, int $offset ): bool { |
| 172 |
throw self::_unimplemented(); |
| 173 |
} |
| 174 |
|
| 175 |
/** |
| 176 |
* @param Node $node |
| 177 |
* @param int $offset |
| 178 |
* @return int |
| 179 |
*/ |
| 180 |
public function comparePoint( /* Node */ $node, int $offset ): int { |
| 181 |
throw self::_unimplemented(); |
| 182 |
} |
| 183 |
|
| 184 |
/** |
| 185 |
* @param Node $node |
| 186 |
* @return bool |
| 187 |
*/ |
| 188 |
public function intersectsNode( /* Node */ $node ): bool { |
| 189 |
throw self::_unimplemented(); |
| 190 |
} |
| 191 |
|
| 192 |
/** |
| 193 |
* @return string |
| 194 |
*/ |
| 195 |
public function toString(): string { |
| 196 |
throw self::_unimplemented(); |
| 197 |
} |
| 198 |
|
| 199 |
/** |
| 200 |
* @param string $fragment |
| 201 |
* @return DocumentFragment |
| 202 |
*/ |
| 203 |
public function createContextualFragment( string $fragment ) { |
| 204 |
throw self::_unimplemented(); |
| 205 |
} |
| 206 |
|
| 207 |
} |