Method | Description | |
---|---|---|
__construct ( string $messageTemplate, array $parameters = [] ) |
public __construct ( string $messageTemplate, array $parameters = [] ) | ||
$messageTemplate | string | The message template, with placeholders for parameters. E.g. "Content with ID %contentId% could not be found". |
$parameters | array | Hash map with param placeholder as key and its corresponding value. E.g. array('%contentId%' => 123). |