MediaWiki REL1_39
|
Converter between Message and MessageValue. More...
Public Member Functions | |
convertMessage (Message $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 | ( | Message | $m | ) |
Convert a Message to a MessageValue.
Message | $m |
Definition at line 53 of file Converter.php.
References Message\getKey(), and Message\getParams().
MediaWiki\Message\Converter::convertMessageValue | ( | MessageValue | $mv | ) |
Convert a MessageValue to a Message.
MessageValue | $mv |
Definition at line 96 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 44 of file Converter.php.
Referenced by MediaWiki\Message\Converter\convertMessageValue().