PHP Class Symfony\Component\Form\ValueTransformer\PercentToLocalizedStringTransformer

Author: Bernhard Schussek ([email protected])
Author: Florian Eckerstorfer ([email protected])
Inheritance: extends Symfony\Component\Form\ValueTransformer\BaseValueTransformer
Exibir arquivo Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Property Type Description
$types

Public Methods

Method Description
reverseTransform ( number $value, $originalValue ) : number Transforms between a percentage value into a normalized format (integer or float).
transform ( number $value ) : number Transforms between a normalized format (integer or float) into a percentage value.

Protected Methods

Method Description
configure ( ) {@inheritDoc}
getNumberFormatter ( ) : NumberFormatter Returns a preconfigured \NumberFormatter instance

Method Details

configure() protected method

{@inheritDoc}
protected configure ( )

getNumberFormatter() protected method

Returns a preconfigured \NumberFormatter instance
protected getNumberFormatter ( ) : NumberFormatter
return NumberFormatter

reverseTransform() public method

Transforms between a percentage value into a normalized format (integer or float).
public reverseTransform ( number $value, $originalValue ) : number
$value number Percentage value.
return number Normalized value.

transform() public method

Transforms between a normalized format (integer or float) into a percentage value.
public transform ( number $value ) : number
$value number Normalized value.
return number Percentage value.

Property Details

$types protected_oe static_oe property

protected static $types