Symfony\Component\Form\Extension\Core\DataTransformer\BooleanToStringTransformer
Transforms between a Boolean and a string.
- Author: Bernhard Schussek <bschussek@gmail.com>
Synopsis
class BooleanToStringTransformer
implements
DataTransformerInterface
{
- // members
- private string $trueValue;
- // methods
- public void __construct()
- public string transform()
- public Boolean reverseTransform()
Hierarchy
Members
private
- $trueValue
—
string
The value emitted upon transform if the input is true
Methods
public
- __construct() — Sets the value emitted upon transform if the input is true.
- reverseTransform() — Transforms a string into a Boolean.
- transform() — Transforms a Boolean into a string.