Document null support in NumberToLocalizedStringTransformer
This commit is contained in:
parent
9b89b2ec04
commit
1fda3d0284
@ -45,7 +45,7 @@ class MoneyToLocalizedStringTransformer extends NumberToLocalizedStringTransform
|
|||||||
/**
|
/**
|
||||||
* Transforms a normalized format into a localized money string.
|
* Transforms a normalized format into a localized money string.
|
||||||
*
|
*
|
||||||
* @param int|float $value Normalized number
|
* @param int|float|null $value Normalized number
|
||||||
*
|
*
|
||||||
* @return string Localized money string
|
* @return string Localized money string
|
||||||
*
|
*
|
||||||
@ -69,7 +69,7 @@ class MoneyToLocalizedStringTransformer extends NumberToLocalizedStringTransform
|
|||||||
*
|
*
|
||||||
* @param string $value Localized money string
|
* @param string $value Localized money string
|
||||||
*
|
*
|
||||||
* @return int|float Normalized number
|
* @return int|float|null Normalized number
|
||||||
*
|
*
|
||||||
* @throws TransformationFailedException if the given value is not a string
|
* @throws TransformationFailedException if the given value is not a string
|
||||||
* or if the value can not be transformed
|
* or if the value can not be transformed
|
||||||
|
@ -98,7 +98,7 @@ class NumberToLocalizedStringTransformer implements DataTransformerInterface
|
|||||||
/**
|
/**
|
||||||
* Transforms a number type into localized number.
|
* Transforms a number type into localized number.
|
||||||
*
|
*
|
||||||
* @param int|float $value Number value
|
* @param int|float|null $value Number value
|
||||||
*
|
*
|
||||||
* @return string Localized value
|
* @return string Localized value
|
||||||
*
|
*
|
||||||
@ -133,7 +133,7 @@ class NumberToLocalizedStringTransformer implements DataTransformerInterface
|
|||||||
*
|
*
|
||||||
* @param string $value The localized value
|
* @param string $value The localized value
|
||||||
*
|
*
|
||||||
* @return int|float The numeric value
|
* @return int|float|null The numeric value
|
||||||
*
|
*
|
||||||
* @throws TransformationFailedException if the given value is not a string
|
* @throws TransformationFailedException if the given value is not a string
|
||||||
* or if the value can not be transformed
|
* or if the value can not be transformed
|
||||||
|
Reference in New Issue
Block a user