]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - extensions/LocalisationUpdate/reader/Reader.php
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / extensions / LocalisationUpdate / reader / Reader.php
diff --git a/extensions/LocalisationUpdate/reader/Reader.php b/extensions/LocalisationUpdate/reader/Reader.php
new file mode 100644 (file)
index 0000000..8c263ff
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+/**
+ * @file
+ * @author Niklas Laxström
+ * @license GPL-2.0+
+ */
+
+namespace LocalisationUpdate;
+
+/**
+ * Interface for file readers.
+ */
+interface Reader {
+       /**
+        * Returns a list of messages indexed by language code. Example
+        *  array( 'en' => array( 'key' => 'value' ) );
+        * @param string $contents File contents as a string.
+        * @return array
+        */
+       public function parse( $contents );
+}