Documentation

MessageFormatter
in package
implements MessageFormatterInterface, ChoiceMessageFormatterInterface

Tags
author

Abdellatif Ait boudad a.aitboudad@gmail.com

Interfaces, Classes and Traits

MessageFormatterInterface
ChoiceMessageFormatterInterface

Table of Contents

$selector  : mixed
__construct()  : mixed
choiceFormat()  : string
Formats a localized message pattern with given arguments.
format()  : string
Formats a localized message pattern with given arguments.

Properties

Methods

choiceFormat()

Formats a localized message pattern with given arguments.

public choiceFormat(mixed $message, mixed $number, mixed $locale[, array<string|int, mixed> $parameters = [] ]) : string
Parameters
$message : mixed

The message (may also be an object that can be cast to string)

$number : mixed

The number to use to find the indice of the message

$locale : mixed

The message locale

$parameters : array<string|int, mixed> = []

An array of parameters for the message

Return values
string

format()

Formats a localized message pattern with given arguments.

public format(mixed $message, mixed $locale[, array<string|int, mixed> $parameters = [] ]) : string
Parameters
$message : mixed

The message (may also be an object that can be cast to string)

$locale : mixed

The message locale

$parameters : array<string|int, mixed> = []

An array of parameters for the message

Return values
string

Search results