| 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\Node; |
| 10 |
|
| 11 |
trait XPathResult { |
| 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 getResultType(): int { |
| 28 |
throw self::_unimplemented(); |
| 29 |
} |
| 30 |
|
| 31 |
/** |
| 32 |
* @return float |
| 33 |
*/ |
| 34 |
public function getNumberValue(): float { |
| 35 |
throw self::_unimplemented(); |
| 36 |
} |
| 37 |
|
| 38 |
/** |
| 39 |
* @return string |
| 40 |
*/ |
| 41 |
public function getStringValue(): string { |
| 42 |
throw self::_unimplemented(); |
| 43 |
} |
| 44 |
|
| 45 |
/** |
| 46 |
* @return bool |
| 47 |
*/ |
| 48 |
public function getBooleanValue(): bool { |
| 49 |
throw self::_unimplemented(); |
| 50 |
} |
| 51 |
|
| 52 |
/** |
| 53 |
* @return Node|null |
| 54 |
*/ |
| 55 |
public function getSingleNodeValue() { |
| 56 |
throw self::_unimplemented(); |
| 57 |
} |
| 58 |
|
| 59 |
/** |
| 60 |
* @return bool |
| 61 |
*/ |
| 62 |
public function getInvalidIteratorState(): bool { |
| 63 |
throw self::_unimplemented(); |
| 64 |
} |
| 65 |
|
| 66 |
/** |
| 67 |
* @return int |
| 68 |
*/ |
| 69 |
public function getSnapshotLength(): int { |
| 70 |
throw self::_unimplemented(); |
| 71 |
} |
| 72 |
|
| 73 |
/** |
| 74 |
* @return Node|null |
| 75 |
*/ |
| 76 |
public function iterateNext() { |
| 77 |
throw self::_unimplemented(); |
| 78 |
} |
| 79 |
|
| 80 |
/** |
| 81 |
* @param int $index |
| 82 |
* @return Node|null |
| 83 |
*/ |
| 84 |
public function snapshotItem( int $index ) { |
| 85 |
throw self::_unimplemented(); |
| 86 |
} |
| 87 |
|
| 88 |
} |