Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
NullPrefixLookup | n/a |
0 / 0 |
n/a |
0 / 0 |
1 | n/a |
0 / 0 |
|||
getPrefix | n/a |
0 / 0 |
n/a |
0 / 0 |
1 |
1 | <?php |
2 | |
3 | namespace FileImporter\Remote; |
4 | |
5 | use FileImporter\Data\SourceUrl; |
6 | use FileImporter\Interfaces\LinkPrefixLookup; |
7 | |
8 | /** |
9 | * Plain LinkPrefixLookup implementation returning an empty string |
10 | * as prefix. |
11 | * |
12 | * @license GPL-2.0-or-later |
13 | * @author Christoph Jauera <christoph.jauera@wikimedia.de> |
14 | * |
15 | * @codeCoverageIgnore |
16 | */ |
17 | class NullPrefixLookup implements LinkPrefixLookup { |
18 | |
19 | /** |
20 | * @inheritDoc |
21 | */ |
22 | public function getPrefix( SourceUrl $sourceUrl ): string { |
23 | return ''; |
24 | } |
25 | |
26 | } |