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. |
||
| string |
transform(Boolean $value)
Transforms a Boolean into a string. |
|
| Boolean |
reverseTransform(string $value)
Transforms a string into a Boolean. |
Details
at line 36
public
__construct(string $trueValue)
Sets the value emitted upon transform if the input is true.
at line 50
public string
transform(Boolean $value)
Transforms a Boolean into a string.
at line 72
public Boolean
reverseTransform(string $value)
Transforms a string into a Boolean.