Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 8
CRAP
0.00% covered (danger)
0.00%
0 / 1
HTMLButtonElement
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 8
72
0.00% covered (danger)
0.00%
0 / 1
 _unimplemented
n/a
0 / 0
n/a
0 / 0
0
 getForm
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getWillValidate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getValidity
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getValidationMessage
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
 setCustomValidity
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getLabels
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\HTMLFormElement;
10use Wikimedia\IDLeDOM\NodeList;
11use Wikimedia\IDLeDOM\ValidityState;
12
13trait HTMLButtonElement {
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 HTMLFormElement|null
28     */
29    public function getForm() {
30        throw self::_unimplemented();
31    }
32
33    /**
34     * @return bool
35     */
36    public function getWillValidate(): bool {
37        throw self::_unimplemented();
38    }
39
40    /**
41     * @return ValidityState
42     */
43    public function getValidity() {
44        throw self::_unimplemented();
45    }
46
47    /**
48     * @return string
49     */
50    public function getValidationMessage(): string {
51        throw self::_unimplemented();
52    }
53
54    /**
55     * @return bool
56     */
57    public function checkValidity(): bool {
58        throw self::_unimplemented();
59    }
60
61    /**
62     * @return bool
63     */
64    public function reportValidity(): bool {
65        throw self::_unimplemented();
66    }
67
68    /**
69     * @param string $error
70     * @return void
71     */
72    public function setCustomValidity( string $error ): void {
73        throw self::_unimplemented();
74    }
75
76    /**
77     * @return NodeList
78     */
79    public function getLabels() {
80        throw self::_unimplemented();
81    }
82
83}