Document null support in NumberToLocalizedStringTransformer

This commit is contained in:
Michael Babker 2021-05-30 11:06:17 -05:00
parent 9b89b2ec04
commit 1fda3d0284
No known key found for this signature in database
GPG Key ID: 00E151E3933DB00B
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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