| 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\Document; |
| 10 |
use Wikimedia\IDLeDOM\HTMLFormElement; |
| 11 |
use Wikimedia\IDLeDOM\ValidityState; |
| 12 |
|
| 13 |
trait HTMLObjectElement { |
| 14 |
|
| 15 |
// Underscore is used to avoid conflicts with DOM-reserved names |
| 16 |
// phpcs:disable PSR2.Methods.MethodDeclaration.Underscore |
| 17 |
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName |
| 18 |
|
| 19 |
/** |
| 20 |
* @return Exception |
| 21 |
*/ |
| 22 |
abstract protected function _unimplemented(): Exception; |
| 23 |
|
| 24 |
// phpcs:enable |
| 25 |
|
| 26 |
/** |
| 27 |
* @return string |
| 28 |
*/ |
| 29 |
public function getData(): string { |
| 30 |
throw self::_unimplemented(); |
| 31 |
} |
| 32 |
|
| 33 |
/** |
| 34 |
* @param string $val |
| 35 |
*/ |
| 36 |
public function setData( string $val ): void { |
| 37 |
throw self::_unimplemented(); |
| 38 |
} |
| 39 |
|
| 40 |
/** |
| 41 |
* @return HTMLFormElement|null |
| 42 |
*/ |
| 43 |
public function getForm() { |
| 44 |
throw self::_unimplemented(); |
| 45 |
} |
| 46 |
|
| 47 |
/** |
| 48 |
* @return Document|null |
| 49 |
*/ |
| 50 |
public function getContentDocument() { |
| 51 |
throw self::_unimplemented(); |
| 52 |
} |
| 53 |
|
| 54 |
/** |
| 55 |
* @return bool |
| 56 |
*/ |
| 57 |
public function getWillValidate(): bool { |
| 58 |
throw self::_unimplemented(); |
| 59 |
} |
| 60 |
|
| 61 |
/** |
| 62 |
* @return ValidityState |
| 63 |
*/ |
| 64 |
public function getValidity() { |
| 65 |
throw self::_unimplemented(); |
| 66 |
} |
| 67 |
|
| 68 |
/** |
| 69 |
* @return string |
| 70 |
*/ |
| 71 |
public function getValidationMessage(): string { |
| 72 |
throw self::_unimplemented(); |
| 73 |
} |
| 74 |
|
| 75 |
/** |
| 76 |
* @return bool |
| 77 |
*/ |
| 78 |
public function checkValidity(): bool { |
| 79 |
throw self::_unimplemented(); |
| 80 |
} |
| 81 |
|
| 82 |
/** |
| 83 |
* @return bool |
| 84 |
*/ |
| 85 |
public function reportValidity(): bool { |
| 86 |
throw self::_unimplemented(); |
| 87 |
} |
| 88 |
|
| 89 |
/** |
| 90 |
* @param string $error |
| 91 |
* @return void |
| 92 |
*/ |
| 93 |
public function setCustomValidity( string $error ): void { |
| 94 |
throw self::_unimplemented(); |
| 95 |
} |
| 96 |
|
| 97 |
/** |
| 98 |
* @return int |
| 99 |
*/ |
| 100 |
public function getHspace(): int { |
| 101 |
throw self::_unimplemented(); |
| 102 |
} |
| 103 |
|
| 104 |
/** |
| 105 |
* @param int $val |
| 106 |
*/ |
| 107 |
public function setHspace( int $val ): void { |
| 108 |
throw self::_unimplemented(); |
| 109 |
} |
| 110 |
|
| 111 |
/** |
| 112 |
* @return int |
| 113 |
*/ |
| 114 |
public function getVspace(): int { |
| 115 |
throw self::_unimplemented(); |
| 116 |
} |
| 117 |
|
| 118 |
/** |
| 119 |
* @param int $val |
| 120 |
*/ |
| 121 |
public function setVspace( int $val ): void { |
| 122 |
throw self::_unimplemented(); |
| 123 |
} |
| 124 |
|
| 125 |
/** |
| 126 |
* @return string |
| 127 |
*/ |
| 128 |
public function getCodeBase(): string { |
| 129 |
throw self::_unimplemented(); |
| 130 |
} |
| 131 |
|
| 132 |
/** |
| 133 |
* @param string $val |
| 134 |
*/ |
| 135 |
public function setCodeBase( string $val ): void { |
| 136 |
throw self::_unimplemented(); |
| 137 |
} |
| 138 |
|
| 139 |
} |