class ValueToDuplicatesTransformer implements DataTransformerInterface
Methods
|
__construct(array $keys) |
|
mixed |
transform(mixed $value) Duplicates the given value through the array. |
|
mixed |
reverseTransform(array $array) Extracts the duplicated value from an array. |
|
Details
__construct(array $keys)
Parameters
Duplicates the given value through the array.
Parameters
mixed |
$value |
The value in the original representation |
Return Value
mixed |
The value in the transformed representation |
Extracts the duplicated value from an array.
Parameters
Return Value
mixed |
The value in the original representation |
Exceptions