class CallbackTransformer implements DataTransformerInterface
__construct(callable $transform, callable $reverseTransform) Constructor. | ||
mixed | transform(mixed $data) Transforms a value from the original representation to a transformed representation. | |
mixed | reverseTransform(mixed $data) Transforms a value from the transformed representation to its original representation. |
Constructor.
Transforms a value from the original representation to a transformed representation.
Transforms a value from the transformed representation to its original representation.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Form/CallbackTransformer.html