class ChoicesToValuesTransformer implements DataTransformerInterface
| __construct(ChoiceListInterface $choiceList) | ||
| mixed | transform($array) | |
| mixed | reverseTransform($array) |
| ChoiceListInterface | $choiceList |
| $array |
| mixed | The value in the transformed representation |
| TransformationFailedException | if the given value is not an array |
| $array |
| mixed | The value in the original representation |
| TransformationFailedException | if the given value is not an array or if no matching choice could be found for some given value |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Form/Extension/Core/DataTransformer/ChoicesToValuesTransformer.html