PercentToLocalizedStringTransformer
class PercentToLocalizedStringTransformer implements DataTransformerInterface
Transforms between a normalized format (integer or float) and a percentage value.
Constants
FRACTIONAL |
|
INTEGER |
|
Properties
static protected | $types |
Methods
__construct(int $scale = null, string $type = null)
No description
mixed
transform(mixed $value)
Transforms between a normalized format (integer or float) into a percentage value.
mixed
reverseTransform(mixed $value)
Transforms between a percentage value into a normalized format (integer or float).
getNumberFormatter()
Returns a preconfigured \NumberFormatter instance.