Debian Codegraph @

vendor/wikimedia/idle-dom/src/Stub/HTMLFormElement.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\HTMLFormControlsCollection;
11
12 trait HTMLFormElement {
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 string
27 */
28 public function getAction(): string {
29 throw self::_unimplemented();
30 }
31
32 /**
33 * @param string $val
34 */
35 public function setAction( string $val ): void {
36 throw self::_unimplemented();
37 }
38
39 /**
40 * @return HTMLFormControlsCollection
41 */
42 public function getElements() {
43 throw self::_unimplemented();
44 }
45
46 /**
47 * @return int
48 */
49 public function getLength(): int {
50 throw self::_unimplemented();
51 }
52
53 /**
54 * @return void
55 */
56 public function submit(): void {
57 throw self::_unimplemented();
58 }
59
60 /**
61 * @param HTMLElement|null $submitter
62 * @return void
63 */
64 public function requestSubmit( /* ?HTMLElement */ $submitter = null ): void {
65 throw self::_unimplemented();
66 }
67
68 /**
69 * @return void
70 */
71 public function reset(): void {
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 }