PHP Class Coduo\PHPHumanizer\String\BinarySuffix

Mostrar archivo Open project: coduo/php-humanizer Class Usage Examples

Public Methods

Method Description
__construct ( integer $number, string $locale = 'en', integer $precision = null )
convert ( )

Protected Methods

Method Description
setSpecificPrecisionFormat ( integer $precision ) Replaces the default ICU 56.1 decimal formats defined in $binaryPrefixes with ones that provide the same symbols but the provided number of decimal places.

Method Details

__construct() public method

public __construct ( integer $number, string $locale = 'en', integer $precision = null )
$number integer
$locale string
$precision integer

convert() public method

public convert ( )

setSpecificPrecisionFormat() protected method

Replaces the default ICU 56.1 decimal formats defined in $binaryPrefixes with ones that provide the same symbols but the provided number of decimal places.
protected setSpecificPrecisionFormat ( integer $precision )
$precision integer