final | |
|---|---|
readonly | |
implements |
JsonSerializable |
A localizable message text — an i18n key plus positional params,
resolved client-side against the app bundle (messages.<key>), never
server-resolved text.
Positional (not named) because UI5's ResourceBundle.getText(key, aArgs) is
positional MessageFormat ({0}, {1}). Params are scalars
(string|int|float|bool) so the client can locale-format numbers/dates; no
nesting.
| Methods | ||
|---|---|---|
public
|
__construct(string $key, array<int, string|int|float|bool> $params = [])
|
# |
public
static
|
of(string $key, array<int, string|int|float|bool> $params = []): self
|
# |
public
|
jsonSerialize(): array
|
# |
| Properties | |||
|---|---|---|---|
public
|
string
|
$key
|
# |
public
|
array<int, string|int|float|bool>
|
$params
|
# |