mediawiki-extensions-Discus.../tests/phpunit/MockLanguageData.php
Bartosz Dziewoński 433e57394c Use PHP 7.4 property types
Change-Id: I788db64f0c0c00894d77256b7f016d44eda4bbb1
2022-10-28 21:56:38 +02:00

25 lines
388 B
PHP

<?php
namespace MediaWiki\Extension\DiscussionTools\Tests;
use MediaWiki\Extension\DiscussionTools\LanguageData;
class MockLanguageData extends LanguageData {
private array $data;
/**
* @param array $data
*/
public function __construct( array $data ) {
$this->data = $data;
}
/**
* @return array
*/
public function getLocalData(): array {
return $this->data;
}
}