mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-18 11:02:57 +00:00
28 lines
407 B
PHP
28 lines
407 B
PHP
|
<?php
|
||
|
|
||
|
namespace MediaWiki\Extension\DiscussionTools\Tests;
|
||
|
|
||
|
use MediaWiki\Extension\DiscussionTools\LanguageData;
|
||
|
|
||
|
class MockLanguageData extends LanguageData {
|
||
|
|
||
|
/**
|
||
|
* @var array
|
||
|
*/
|
||
|
private $data;
|
||
|
|
||
|
/**
|
||
|
* @param array $data
|
||
|
*/
|
||
|
public function __construct( array $data ) {
|
||
|
$this->data = $data;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return array
|
||
|
*/
|
||
|
public function getLocalData(): array {
|
||
|
return $this->data;
|
||
|
}
|
||
|
}
|