BooleanToStringTransformer
class BooleanToStringTransformer implements DataTransformerInterface
Transforms between a Boolean and a string.
Methods
Details
__construct(string $trueValue)
Parameters
| string | $trueValue | The value emitted upon transform if the input is true |
Transforms a Boolean into a string.
Parameters
| mixed | $value | The value in the original representation |
Return Value
| mixed | The value in the transformed representation |
Exceptions
Transforms a string into a Boolean.
Parameters
| mixed | $value | The value in the transformed representation |
Return Value
| mixed | The value in the original representation |
Exceptions