mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-11 15:38:37 +00:00
2a4f186400
It's all in the code now. These comments don't add anything any more. Change-Id: I66a3723c4fe9ccce989f5b533390d5ce928dc195
34 lines
558 B
PHP
34 lines
558 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\Notifications;
|
|
|
|
/**
|
|
* Implements the ContainmentList interface for php arrays. Possible source
|
|
* of arrays includes $wg* global variables initialized from extensions or global
|
|
* wiki config.
|
|
*/
|
|
class ArrayList implements ContainmentList {
|
|
/**
|
|
* @var array
|
|
*/
|
|
protected $list;
|
|
|
|
public function __construct( array $list ) {
|
|
$this->list = $list;
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function getValues() {
|
|
return $this->list;
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function getCacheKey() {
|
|
return '';
|
|
}
|
|
}
|