mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-13 17:57:21 +00:00
e576cbdca0
Change-Id: If1405788a4adb550e8a7e8c58b0c2c55cf10ea67
37 lines
591 B
PHP
37 lines
591 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;
|
|
|
|
/**
|
|
* @param array $list
|
|
*/
|
|
public function __construct( array $list ) {
|
|
$this->list = $list;
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function getValues() {
|
|
return $this->list;
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function getCacheKey() {
|
|
return '';
|
|
}
|
|
}
|