class ValueToDuplicatesTransformer implements DataTransformerInterface

Methods

__construct(array $keys)

No description

mixed
transform(mixed $value)

Duplicates the given value through the array.

mixed
reverseTransform($array)

Extracts the duplicated value from an array.

Details

at line 24
__construct(array $keys)

Parameters

array $keys

at line 36
mixed transform(mixed $value)

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

at line 55
mixed reverseTransform($array)

Extracts the duplicated value from an array.

Parameters

$array

Return Value

mixed The value in the original representation

Exceptions

TransformationFailedException if the given value is not an array or if the given array can not be transformed