Class LocalizedListFormatter
Formats a variable-length lists of things.
-
ICanBoogie\CLDR\LocalizedObject
uses
ICanBoogie\Accessor\AccessorTrait (not available)
ICanBoogie\CLDR\LocalePropertyTrait
-
┗
ICanBoogie\CLDR\LocalizedListFormatter
implements
ICanBoogie\CLDR\Formatter
Methods summary
public
__invoke( array $list
, array|string $list_patterns_or_type
= self::TYPE_STANDARD )
: string
Formats a variable-length lists of things.
Formats a variable-length lists of things.
Parameters
$list
- The list to format.
$list_patterns_or_type
A list patterns or a list patterns type (one
of TYPE_*
).
Returns
string
__construct()
,
from()
,
get_target()
get_locale()
Constants summary
TYPE_STANDARD
: string
'standard'
TYPE_UNIT
: string
'unit'
TYPE_UNIT_NARROW
: string
'unit-narrow'
TYPE_UNIT_SHORT
: string
'unit-short'
Properties summary
$options
,
$target
Magic properties
$locale
$locale