Debian Codegraph @

vendor/wikimedia/idle-dom/src/Stub/HTMLOptionsCollection.php

raw
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\HTMLElement;
10 use Wikimedia\IDLeDOM\HTMLOptGroupElement;
11 use Wikimedia\IDLeDOM\HTMLOptionElement;
12
13 trait HTMLOptionsCollection {
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 * @param int $index
28 * @param HTMLOptionElement|null $option
29 * @return void
30 */
31 public function setItem( int $index, /* ?HTMLOptionElement */ $option ): void {
32 throw self::_unimplemented();
33 }
34
35 /**
36 * @param HTMLOptionElement|HTMLOptGroupElement $element
37 * @param HTMLElement|int|null $before
38 * @return void
39 */
40 public function add( /* mixed */ $element, /* ?mixed */ $before = null ): void {
41 throw self::_unimplemented();
42 }
43
44 /**
45 * @param int $index
46 * @return void
47 */
48 public function remove( int $index ): void {
49 throw self::_unimplemented();
50 }
51
52 /**
53 * @return int
54 */
55 public function getSelectedIndex(): int {
56 throw self::_unimplemented();
57 }
58
59 /**
60 * @param int $val
61 */
62 public function setSelectedIndex( int $val ): void {
63 throw self::_unimplemented();
64 }
65
66 }