Core\DataTransformer\ValueToDuplicatesTransformer (Component\Form\Extension)
Symfony\Component\Form\Extension\Core\DataTransformer\ValueToDuplicatesTransformer
class ValueToDuplicatesTransformer implements DataTransformerInterface
Methods
__construct(array $keys) | ||
array | transform(mixed $value) Duplicates the given value through the array. | |
mixed | reverseTransform(array $array) Extracts the duplicated value from an array. |
Details
public __construct(array $keys)
public array transform(mixed $value)
Duplicates the given value through the array.
public mixed reverseTransform(array $array)
Extracts the duplicated value from an array.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Form/Extension/Core/DataTransformer/ValueToDuplicatesTransformer.html