2018-01-21 20:52:43 +00:00
|
|
|
<?php
|
|
|
|
|
2022-11-13 06:43:40 +00:00
|
|
|
namespace MediaWiki\Extension\Notifications;
|
|
|
|
|
2018-01-21 20:52:43 +00:00
|
|
|
/**
|
2022-11-13 06:43:40 +00:00
|
|
|
* Implements the ContainmentList interface for php arrays. Possible source
|
2018-01-21 20:52:43 +00:00
|
|
|
* of arrays includes $wg* global variables initialized from extensions or global
|
|
|
|
* wiki config.
|
|
|
|
*/
|
2022-11-13 06:43:40 +00:00
|
|
|
class ArrayList implements ContainmentList {
|
2018-01-21 20:52:43 +00:00
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $list;
|
|
|
|
|
|
|
|
public function __construct( array $list ) {
|
|
|
|
$this->list = $list;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @inheritDoc
|
|
|
|
*/
|
|
|
|
public function getValues() {
|
|
|
|
return $this->list;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @inheritDoc
|
|
|
|
*/
|
|
|
|
public function getCacheKey() {
|
|
|
|
return '';
|
|
|
|
}
|
|
|
|
}
|