MediaWiki master
|
Converter between Message and MessageValue. More...
Public Member Functions | |
convertMessage (MessageSpecifier $m) | |
Convert a Message to a MessageValue. | |
convertMessageValue (MessageValue $mv) | |
Convert a MessageValue to a Message. | |
createMessage ( $key) | |
Allow the Message class to be mocked in tests by constructing objects in a protected method. | |
MediaWiki\Message\Converter::convertMessage | ( | MessageSpecifier | $m | ) |
Convert a Message to a MessageValue.
MessageSpecifier | $m |
Definition at line 36 of file Converter.php.
References Wikimedia\Message\MessageSpecifier\getKey(), and Wikimedia\Message\MessageSpecifier\getParams().
MediaWiki\Message\Converter::convertMessageValue | ( | MessageValue | $mv | ) |
Convert a MessageValue to a Message.
MessageValue | $mv |
Definition at line 79 of file Converter.php.
References MediaWiki\Message\Converter\createMessage(), Wikimedia\Message\MessageValue\getKey(), and Wikimedia\Message\MessageValue\getParams().
MediaWiki\Message\Converter::createMessage | ( | $key | ) |
Allow the Message class to be mocked in tests by constructing objects in a protected method.
string | $key |
Definition at line 27 of file Converter.php.
Referenced by MediaWiki\Message\Converter\convertMessageValue().