class BooleanToStringTransformer implements DataTransformerInterface
Transforms between a Boolean and a string.
__construct(string $trueValue) Sets the value emitted upon transform if the input is true. | ||
mixed | transform(mixed $value) Transforms a Boolean into a string. | |
mixed | reverseTransform(mixed $value) Transforms a string into a Boolean. |
Sets the value emitted upon transform if the input is true.
Transforms a Boolean into a string.
Transforms a string into a Boolean.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/Form/Extension/Core/DataTransformer/BooleanToStringTransformer.html