Property | Type | Description | |
---|---|---|---|
$messageParameters | array | The parameters that should be substituted in the message template | |
$messagePluralization | integer | null | The value for error message pluralization | |
$messageTemplate | string | The template for the error message |
Method | Description | |
---|---|---|
__construct ( string $messageTemplate, array $messageParameters = [], integer | null $messagePluralization = null ) | Constructor | |
getMessage ( ) : string | Returns the error message | |
getMessageParameters ( ) : array | Returns the parameters to be inserted in the message template | |
getMessagePluralization ( ) : integer | null | Returns the value for error message pluralization. | |
getMessageTemplate ( ) : string | Returns the error message template |
public __construct ( string $messageTemplate, array $messageParameters = [], integer | null $messagePluralization = null ) | ||
$messageTemplate | string | The template for the error message |
$messageParameters | array | The parameters that should be substituted in the message template. |
$messagePluralization | integer | null | The value for error message pluralization |
public getMessageParameters ( ) : array | ||
return | array |
public getMessagePluralization ( ) : integer | null | ||
return | integer | null |
public getMessageTemplate ( ) : string | ||
return | string |
protected array $messageParameters | ||
return | array |
protected string $messageTemplate | ||
return | string |