class PercentToLocalizedStringTransformer implements DataTransformerInterface
Transforms between a normalized format (integer or float) and a percentage value.
Constants
FRACTIONAL | |
INTEGER |
Methods
__construct(int $scale = null, string $type = null) Constructor. | ||
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). |
Details
__construct(int $scale = null, string $type = null)
Constructor.
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).
Please login to continue.