Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 9
0.00% covered (danger)
0.00%
0 / 9
CRAP
0.00% covered (danger)
0.00%
0 / 1
HTMLFormElement
0.00% covered (danger)
0.00%
0 / 9
0.00% covered (danger)
0.00%
0 / 9
90
0.00% covered (danger)
0.00%
0 / 1
 _unimplemented
n/a
0 / 0
n/a
0 / 0
0
 getAction
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setAction
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getElements
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getLength
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 submit
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 requestSubmit
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 reset
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 checkValidity
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 reportValidity
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3// AUTOMATICALLY GENERATED.  DO NOT EDIT.
4// Use `composer build` to regenerate.
5
6namespace Wikimedia\IDLeDOM\Stub;
7
8use Exception;
9use Wikimedia\IDLeDOM\HTMLElement;
10use Wikimedia\IDLeDOM\HTMLFormControlsCollection;
11
12trait 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}