PHP Class Symfony\Component\Form\ValueTransformer\NumberToLocalizedStringTransformer

Author: Bernhard Schussek ([email protected])
Author: Florian Eckerstorfer ([email protected])
Inheritance: extends Symfony\Component\Form\Configurable, implements Symfony\Component\Form\ValueTransformer\ValueTransformerInterface
ファイルを表示 Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
reverseTransform ( string $value, $originalValue ) Transforms a localized number into an integer or float
transform ( number $value ) : string Transforms a number type into localized number.

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 a localized number into an integer or float
public reverseTransform ( string $value, $originalValue )
$value string

transform() public method

Transforms a number type into localized number.
public transform ( number $value ) : string
$value number Number value.
return string Localized value.