Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
ArrayList | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getValues | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getCacheKey | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\Notifications; |
4 | |
5 | /** |
6 | * Implements the ContainmentList interface for php arrays. Possible source |
7 | * of arrays includes $wg* global variables initialized from extensions or global |
8 | * wiki config. |
9 | */ |
10 | class ArrayList implements ContainmentList { |
11 | /** |
12 | * @var array |
13 | */ |
14 | protected $list; |
15 | |
16 | /** |
17 | * @param array $list |
18 | */ |
19 | public function __construct( array $list ) { |
20 | $this->list = $list; |
21 | } |
22 | |
23 | /** |
24 | * @inheritDoc |
25 | */ |
26 | public function getValues() { |
27 | return $this->list; |
28 | } |
29 | |
30 | /** |
31 | * @inheritDoc |
32 | */ |
33 | public function getCacheKey() { |
34 | return ''; |
35 | } |
36 | } |