BooleanToStringTransformer
BooleanToStringTransformer
class BooleanToStringTransformer implements DataTransformerInterface
Transforms between a Boolean and a string.
Methods
__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. |
Details
__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.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Form/Extension/Core/DataTransformer/BooleanToStringTransformer.html