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.
Please login to continue.