IntlCallbackChoiceLoader
extends CallbackChoiceLoader
in package
Callback choice loader optimized for Intl choice types.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- loadChoiceList() : ChoiceListInterface
- Loads a list of choices.
- loadChoicesForValues() : array<string|int, mixed>
- {@inheritdoc}
- loadValuesForChoices() : array<string|int, mixed>
- {@inheritdoc}
- doLoadChoicesForValues() : array<string|int, mixed>
- doLoadValuesForChoices() : array<string|int, mixed>
- loadChoices() : iterable<string|int, mixed>
Properties
$callback
private
Closure
$callback
$choices
private
iterable<string|int, mixed>|null
$choices
Methods
__construct()
public
__construct(callable $callback) : mixed
Parameters
- $callback : callable
-
The callable returning iterable choices
loadChoiceList()
Loads a list of choices.
public
loadChoiceList([callable $value = null ]) : ChoiceListInterface
Parameters
- $value : callable = null
-
The callable which generates the values from choices
Tags
Return values
ChoiceListInterfaceloadChoicesForValues()
{@inheritdoc}
public
loadChoicesForValues(array<string|int, mixed> $values[, callable $value = null ]) : array<string|int, mixed>
Parameters
- $values : array<string|int, mixed>
- $value : callable = null
Return values
array<string|int, mixed>loadValuesForChoices()
{@inheritdoc}
public
loadValuesForChoices(array<string|int, mixed> $choices[, callable $value = null ]) : array<string|int, mixed>
Parameters
- $choices : array<string|int, mixed>
- $value : callable = null
Return values
array<string|int, mixed>doLoadChoicesForValues()
protected
doLoadChoicesForValues(array<string|int, mixed> $values, callable|null $value) : array<string|int, mixed>
Parameters
- $values : array<string|int, mixed>
- $value : callable|null
Return values
array<string|int, mixed>doLoadValuesForChoices()
protected
doLoadValuesForChoices(array<string|int, mixed> $choices) : array<string|int, mixed>
Parameters
- $choices : array<string|int, mixed>
Return values
array<string|int, mixed>loadChoices()
protected
abstract loadChoices() : iterable<string|int, mixed>