mediawiki-extensions-Echo/includes/EchoArrayList.php
Phantom42 254cf8360b Fix multiple PHP class declarations in one file
All files containing more than one PHP class were split into
multiple files.

extension.json was updated to match new class locations.

Bug: T177809
Change-Id: I4e7d8f02164c3048c41c4c9fbe4be18a99e7abaa
2018-01-21 21:17:53 +00:00

35 lines
557 B
PHP

<?php
/**
* Implements the EchoContainmentList interface for php arrays. Possible source
* of arrays includes $wg* global variables initialized from extensions or global
* wiki config.
*/
class EchoArrayList implements EchoContainmentList {
/**
* @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 '';
}
}