class ValueToDuplicatesTransformer implements DataTransformerInterface
__construct(array $keys) | ||
mixed | transform(mixed $value) Duplicates the given value through the array. | |
mixed | reverseTransform($array) Extracts the duplicated value from an array. |
array | $keys |
Duplicates the given value through the array.
mixed | $value | The value in the original representation |
mixed | The value in the transformed representation |
Extracts the duplicated value from an array.
$array |
mixed | The value in the original representation |
TransformationFailedException | if the given value is not an array or if the given array can not be transformed |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Form/Extension/Core/DataTransformer/ValueToDuplicatesTransformer.html