NumberBase
in package
implements
Stringable
AbstractYes
Table of Contents
Interfaces
- Stringable
Constants
- MAX_DECIMALS = 30
Properties
- $decimals : int
- $fullLocale : string|null
- $locale : string|null
- $localeFormat : string|null
Methods
- __toString() : string
- format() : string
- setDecimals() : void
- setLocale() : void
- Setting a locale will override any settings defined in this class.
- getLocaleFormat() : string
- Stub: should be implemented as a concrete method in concrete wizards.
- validateLocale() : string
Constants
MAX_DECIMALS
protected
mixed
MAX_DECIMALS
= 30
Properties
$decimals
protected
int
$decimals
= 2
$fullLocale
protected
string|null
$fullLocale
= null
$locale
protected
string|null
$locale
= null
$localeFormat
protected
string|null
$localeFormat
= null
Methods
__toString()
public
__toString() : string
Return values
stringformat()
public
format() : string
Return values
stringsetDecimals()
public
setDecimals([int $decimals = 2 ]) : void
Parameters
- $decimals : int = 2
setLocale()
Setting a locale will override any settings defined in this class.
public
setLocale([string|null $locale = null ]) : void
Parameters
- $locale : string|null = null
Tags
getLocaleFormat()
Stub: should be implemented as a concrete method in concrete wizards.
protected
abstract getLocaleFormat() : string
Return values
stringvalidateLocale()
private
validateLocale(string $locale) : string
Parameters
- $locale : string