summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/Translate/messagegroups/MessageGroup.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/Translate/messagegroups/MessageGroup.php')
-rw-r--r--www/wiki/extensions/Translate/messagegroups/MessageGroup.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/www/wiki/extensions/Translate/messagegroups/MessageGroup.php b/www/wiki/extensions/Translate/messagegroups/MessageGroup.php
index a22ad02d..254a7481 100644
--- a/www/wiki/extensions/Translate/messagegroups/MessageGroup.php
+++ b/www/wiki/extensions/Translate/messagegroups/MessageGroup.php
@@ -6,7 +6,7 @@
* @defgroup MessageGroup Message group
* @author Niklas Laxström
* @copyright Copyright © 2010-2013, Niklas Laxström
- * @license GPL-2.0+
+ * @license GPL-2.0-or-later
*/
/**
@@ -36,7 +36,7 @@ interface MessageGroup {
/**
* Returns the human readable label (as plain text).
* Parameter $context was added in 2012-10-22.
- * @param IContextSource $context Context can be used by subclasses to provide
+ * @param IContextSource|null $context Context can be used by subclasses to provide
* translated descriptions, for example.
* @return string
*/
@@ -45,10 +45,9 @@ interface MessageGroup {
/**
* Returns a longer description about the group. Description can use wikitext.
* Parameter $context was added in 2012-10-22.
- * @param IContextSource $context Context can be used by subclasses to provide
+ * @param IContextSource|null $context Context can be used by subclasses to provide
* translated descriptions, for example.
* @return string
- *
*/
public function getDescription( IContextSource $context = null );
@@ -105,7 +104,7 @@ interface MessageGroup {
/**
* Initialises a message collection with the given language code,
* message definitions and message tags.
- * @param $code
+ * @param string $code
* @return MessageCollection
*/
public function initCollection( $code );
@@ -115,20 +114,21 @@ interface MessageGroup {
* that list may be identical with the translation in the wiki. For other
* groups the messages may be loaded from a file (and differ from the
* current translations or definitions).
- * @param $code
+ * @param string $code
* @return array
*/
public function load( $code );
/**
* Shortcut for load( getSourceLanguage() ).
+ * @return string[]
*/
public function getDefinitions();
/**
* Returns message tags. If type is given, only message keys with that
* tag are returned. Otherwise an array[tag => keys] is returned.
- * @param $type string
+ * @param string|null $type
* @return array
*/
public function getTags( $type = null );