TranslatableMessage
in package
implements
TranslatableInterface
Tags
Table of Contents
Interfaces
Properties
- $domain : string|null
- $message : string
- $parameters : array<string|int, mixed>
Methods
- __construct() : mixed
- __toString() : string
- getDomain() : string|null
- getMessage() : string
- getParameters() : array<string|int, mixed>
- trans() : string
Properties
$domain
private
string|null
$domain
$message
private
string
$message
$parameters
private
array<string|int, mixed>
$parameters
Methods
__construct()
public
__construct(string $message[, array<string|int, mixed> $parameters = [] ][, string $domain = null ]) : mixed
Parameters
- $message : string
- $parameters : array<string|int, mixed> = []
- $domain : string = null
__toString()
public
__toString() : string
Return values
stringgetDomain()
public
getDomain() : string|null
Return values
string|nullgetMessage()
public
getMessage() : string
Return values
stringgetParameters()
public
getParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>trans()
public
trans(TranslatorInterface $translator[, string $locale = null ]) : string
Parameters
- $translator : TranslatorInterface
- $locale : string = null