ChoiceToValueTransformer
ChoiceToValueTransformer
class ChoiceToValueTransformer implements DataTransformerInterface
Methods
__construct(ChoiceListInterface $choiceList) Constructor. | ||
mixed | transform($choice) Transforms a value from the original representation to a transformed representation. | |
mixed | reverseTransform(mixed $value) Transforms a value from the transformed representation to its original representation. |