]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blob - extensions/LocalisationUpdate/reader/Reader.php
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / extensions / LocalisationUpdate / reader / Reader.php
1 <?php
2 /**
3  * @file
4  * @author Niklas Laxström
5  * @license GPL-2.0+
6  */
7
8 namespace LocalisationUpdate;
9
10 /**
11  * Interface for file readers.
12  */
13 interface Reader {
14         /**
15          * Returns a list of messages indexed by language code. Example
16          *  array( 'en' => array( 'key' => 'value' ) );
17          * @param string $contents File contents as a string.
18          * @return array
19          */
20         public function parse( $contents );
21 }