$resolver->
setAllowedValues('rounding_mode',
[ \NumberFormatter::ROUND_FLOOR,
\NumberFormatter::ROUND_DOWN,
\NumberFormatter::ROUND_HALFDOWN,
\NumberFormatter::ROUND_HALFEVEN,
\NumberFormatter::ROUND_HALFUP,
\NumberFormatter::ROUND_UP,
\NumberFormatter::ROUND_CEILING,
]);
$resolver->
setAllowedValues('input',
['number', 'string'
]);
$resolver->
setAllowedTypes('scale',
['null', 'int'
]);
$resolver->
setAllowedTypes('html5', 'bool'
);
$resolver->
setNormalizer('grouping',
static function DOptions
$options,
$value) { if (true ===
$value &&
$options['html5'
]) { throw new LogicException('Cannot use the "grouping" option when the "html5" option is enabled.'
);
} return $value;
});
}