Documentation

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

Properties

$fullLocale

protected string|null $fullLocale = null

$localeFormat

protected string|null $localeFormat = null

Methods

__toString()

public __toString() : string
Return values
string

format()

public format() : string
Return values
string

setDecimals()

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
throws
Exception

If the locale code is not a valid format

getLocaleFormat()

Stub: should be implemented as a concrete method in concrete wizards.

protected abstract getLocaleFormat() : string
Return values
string

validateLocale()

private validateLocale(string $locale) : string
Parameters
$locale : string
Tags
throws
Exception

If the locale code is not a valid format

Return values
string

        
On this page

Search results