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 ) {
66 $this->message = $this->key;
69 return $this->message;