Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 23
0.00% covered (danger)
0.00%
0 / 23
CRAP
0.00% covered (danger)
0.00%
0 / 1
URL
0.00% covered (danger)
0.00%
0 / 23
0.00% covered (danger)
0.00%
0 / 23
552
0.00% covered (danger)
0.00%
0 / 1
 _unimplemented
n/a
0 / 0
n/a
0 / 0
0
 getHref
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setHref
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getOrigin
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getProtocol
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setProtocol
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getUsername
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setUsername
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getPassword
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setPassword
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getHost
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setHost
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getHostname
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setHostname
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getPort
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setPort
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getPathname
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setPathname
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getSearch
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setSearch
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getSearchParams
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getHash
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setHash
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 toJSON
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\URLSearchParams;
10
11trait URL {
12
13    // Underscore is used to avoid conflicts with DOM-reserved names
14    // phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
15    // phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
16
17    /**
18     * @return Exception
19     */
20    abstract protected function _unimplemented(): Exception;
21
22    // phpcs:enable
23
24    /**
25     * @return string
26     */
27    public function getHref(): string {
28        throw self::_unimplemented();
29    }
30
31    /**
32     * @param string $val
33     */
34    public function setHref( string $val ): void {
35        throw self::_unimplemented();
36    }
37
38    /**
39     * @return string
40     */
41    public function getOrigin(): string {
42        throw self::_unimplemented();
43    }
44
45    /**
46     * @return string
47     */
48    public function getProtocol(): string {
49        throw self::_unimplemented();
50    }
51
52    /**
53     * @param string $val
54     */
55    public function setProtocol( string $val ): void {
56        throw self::_unimplemented();
57    }
58
59    /**
60     * @return string
61     */
62    public function getUsername(): string {
63        throw self::_unimplemented();
64    }
65
66    /**
67     * @param string $val
68     */
69    public function setUsername( string $val ): void {
70        throw self::_unimplemented();
71    }
72
73    /**
74     * @return string
75     */
76    public function getPassword(): string {
77        throw self::_unimplemented();
78    }
79
80    /**
81     * @param string $val
82     */
83    public function setPassword( string $val ): void {
84        throw self::_unimplemented();
85    }
86
87    /**
88     * @return string
89     */
90    public function getHost(): string {
91        throw self::_unimplemented();
92    }
93
94    /**
95     * @param string $val
96     */
97    public function setHost( string $val ): void {
98        throw self::_unimplemented();
99    }
100
101    /**
102     * @return string
103     */
104    public function getHostname(): string {
105        throw self::_unimplemented();
106    }
107
108    /**
109     * @param string $val
110     */
111    public function setHostname( string $val ): void {
112        throw self::_unimplemented();
113    }
114
115    /**
116     * @return string
117     */
118    public function getPort(): string {
119        throw self::_unimplemented();
120    }
121
122    /**
123     * @param string $val
124     */
125    public function setPort( string $val ): void {
126        throw self::_unimplemented();
127    }
128
129    /**
130     * @return string
131     */
132    public function getPathname(): string {
133        throw self::_unimplemented();
134    }
135
136    /**
137     * @param string $val
138     */
139    public function setPathname( string $val ): void {
140        throw self::_unimplemented();
141    }
142
143    /**
144     * @return string
145     */
146    public function getSearch(): string {
147        throw self::_unimplemented();
148    }
149
150    /**
151     * @param string $val
152     */
153    public function setSearch( string $val ): void {
154        throw self::_unimplemented();
155    }
156
157    /**
158     * @return URLSearchParams
159     */
160    public function getSearchParams() {
161        throw self::_unimplemented();
162    }
163
164    /**
165     * @return string
166     */
167    public function getHash(): string {
168        throw self::_unimplemented();
169    }
170
171    /**
172     * @param string $val
173     */
174    public function setHash( string $val ): void {
175        throw self::_unimplemented();
176    }
177
178    /**
179     * @return string
180     */
181    public function toJSON(): string {
182        throw self::_unimplemented();
183    }
184
185}