src/Forms/Transformers/NumberToLocalizedStringTransformer.php
public function reverseTransform($data)
    {
        if (is_null($data) || empty($data)) {
            return '';
        }

        $formatter = $this->getFormatter();

        $value = $formatter->parse($data);

        if (intl_is_failure($formatter->getErrorCode())) {
            throw new DataTransformerException($formatter->getErrorMessage());
        }

        return $value;
    }
public function reverseTransform($data)
    {
        if (is_null($data) || empty($data)) {
            return '';
        }

        $formatter = $this->getFormatter();

        $value = $formatter->parse($data);

        if (intl_is_failure($formatter->getErrorCode())) {
            throw new DataTransformerException($formatter->getErrorMessage());
        }

        return $value;
    }
public function reverseTransform ( $ data ) { if ( is_null ( $ data ) || empty ( $ data ) ) { return '' ; } $ formatter = $ this -> getFormatter ( ) ; $ value = $ formatter -> parse ( $ data ) ; if ( intl_is_failure ( $ formatter -> getErrorCode ( ) ) ) { throw new DataTransformerException ( $ formatter -> getErrorMessage ( ) ) ; } return $ value ; }
Convert a localized string to a numeric value.

@param string $data

@throws DataTransformerException

@return int|float
Convert a localized string to a numeric value .