Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 5
CRAP
0.00% covered (danger)
0.00%
0 / 1
EmptyInterwikiResolver
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 5
30
0.00% covered (danger)
0.00%
0 / 1
 getSisterProjectPrefixes
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getSisterProjectConfigs
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getInterwikiPrefix
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getSameProjectWikiByLang
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getSameProjectConfigByLang
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace CirrusSearch;
4
5class EmptyInterwikiResolver implements InterwikiResolver {
6    /**
7     * @return string[] of wikiIds indexed by interwiki prefix
8     */
9    public function getSisterProjectPrefixes() {
10        return [];
11    }
12
13    /**
14     * @return SearchConfig[] configs of sister projects indexed by interwiki prefix
15     */
16    public function getSisterProjectConfigs() {
17        return [];
18    }
19
20    /**
21     * @param string $wikiId
22     * @return string|null the interwiki identified for this $wikiId or null if none found
23     */
24    public function getInterwikiPrefix( $wikiId ) {
25        return null;
26    }
27
28    /**
29     * @param string $lang
30     * @return string[] a single elt array [ 'iw_prefix' => 'wikiId' ] or [] if none found
31     */
32    public function getSameProjectWikiByLang( $lang ) {
33        return [];
34    }
35
36    /**
37     * @param string $lang
38     * @return SearchConfig[] zero or one element array: [] or [ interwiki -> SearchConfig ]
39     */
40    public function getSameProjectConfigByLang( $lang ) {
41        return [];
42    }
43}