48 if ( !is_string( $text ) ) {
49 throw new InvalidArgumentException(
'$text must be a string' );
52 parent::__construct( $text,
$params );
55 $this->message = $text;
65 if ( $this->message ===
null ) {
The Message class provides methods which fulfil two basic services:
string $key
The message key.
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.