public function __construct(?bool
$grouping = false, ?int
$roundingMode = \NumberFormatter::ROUND_DOWN, string
$locale = null
) { parent::
__construct(0,
$grouping,
$roundingMode,
$locale);
} public function reverseTransform(mixed
$value): int|float|null
{ $decimalSeparator =
$this->
getNumberFormatter()->
getSymbol(\NumberFormatter::DECIMAL_SEPARATOR_SYMBOL
);
if (\
is_string($value) &&
str_contains($value,
$decimalSeparator)) { throw new TransformationFailedException(sprintf('The value "%s" is not a valid integer.',
$value));
} $result = parent::
reverseTransform($value);
return null !==
$result ?
(int) $result : null;
} /**
* @internal
*/