Form/DataTransformer/StringToBooleanTransformer.php
public function reverseTransform($value)
    {
        if (null === $value) {
            return false;
        }

        if (!is_bool($value)) {
            throw new UnexpectedTypeException($value, 'Boolean');
        }

        return true === $value ? $this->trueValue : null;
    }
public function reverseTransform($value)
    {
        if (null === $value) {
            return false;
        }

        if (!is_bool($value)) {
            throw new UnexpectedTypeException($value, 'Boolean');
        }

        return true === $value ? $this->trueValue : null;
    }
public function reverseTransform ( $ value ) { if ( null === $ value ) { return false ; } if ( ! is_bool ( $ value ) ) { throw new UnexpectedTypeException ( $ value , 'Boolean' ) ; } return true === $ value ? $ this -> trueValue : null ; }
Transforms a Boolean into a string.

@param Boolean $value Boolean value.

@return string String value.

@throws UnexpectedTypeException if the given value is not a Boolean
Transforms a Boolean into a string .