50 if ( !is_string( $text ) ) {
51 throw new InvalidArgumentException(
'$text must be a string' );
54 parent::__construct( $text, $params );
57 $this->message = $text;
67 if ( $this->message ===
null ) {
68 $this->message = $this->key;
71 return $this->message;
The Message class deals with fetching and processing of interface message into a variety of formats.
Variant of the Message class.
fetchMessage()
Fetch the message (in this case, the key).
__construct( $text, $params=[])
Call the parent constructor, then store the key as the message.