ChoicesToValuesTransformer
in package
implements
DataTransformerInterface
Tags
Interfaces, Classes, Traits and Enums
- DataTransformerInterface
- Transforms a value between different representations.
Table of Contents
- $choiceList : mixed
- __construct() : mixed
- reverseTransform() : array<string|int, mixed>
- Transforms a value from the transformed representation to its original representation.
- transform() : array<string|int, mixed>
- Transforms a value from the original representation to a transformed representation.
Properties
$choiceList
private
mixed
$choiceList
Methods
__construct()
public
__construct(ChoiceListInterface $choiceList) : mixed
Parameters
- $choiceList : ChoiceListInterface
Return values
mixed —reverseTransform()
Transforms a value from the transformed representation to its original representation.
public
reverseTransform(mixed $array) : array<string|int, mixed>
Parameters
- $array : mixed
Tags
Return values
array<string|int, mixed> —transform()
Transforms a value from the original representation to a transformed representation.
public
transform(mixed $array) : array<string|int, mixed>
Parameters
- $array : mixed