PHP Class libphonenumber\NumberFormat

Show file Open project: giggsey/libphonenumber-for-php Class Usage Examples

Protected Properties

Property Type Description
$domesticCarrierCodeFormattingRule
$format
$leadingDigitsPattern
$nationalPrefixFormattingRule
$nationalPrefixOptionalWhenFormatting boolean
$pattern

Public Methods

Method Description
__construct ( )
addLeadingDigitsPattern ( string $value ) : NumberFormat
clear ( ) : NumberFormat
clearNationalPrefixFormattingRule ( ) : NumberFormat
fromArray ( array $input )
getDomesticCarrierCodeFormattingRule ( ) : string
getFormat ( ) : string
getLeadingDigitsPattern ( integer $index ) : string
getNationalPrefixFormattingRule ( ) : string
getPattern ( ) : string
hasDomesticCarrierCodeFormattingRule ( ) : boolean
hasFormat ( ) : boolean
hasNationalPrefixFormattingRule ( ) : boolean
hasPattern ( ) : boolean
isNationalPrefixOptionalWhenFormatting ( ) : boolean
leadingDigitPatterns ( ) : string
leadingDigitsPatternSize ( ) : integer
mergeFrom ( NumberFormat $other ) : NumberFormat
setDomesticCarrierCodeFormattingRule ( string $value ) : NumberFormat
setFormat ( string $value ) : NumberFormat
setNationalPrefixFormattingRule ( string $value ) : NumberFormat
setNationalPrefixOptionalWhenFormatting ( boolean $nationalPrefixOptionalWhenFormatting )
setPattern ( string $value ) : NumberFormat
toArray ( ) : array

Method Details

__construct() public method

public __construct ( )

addLeadingDigitsPattern() public method

public addLeadingDigitsPattern ( string $value ) : NumberFormat
$value string
return NumberFormat

clear() public method

public clear ( ) : NumberFormat
return NumberFormat

clearNationalPrefixFormattingRule() public method

public clearNationalPrefixFormattingRule ( ) : NumberFormat
return NumberFormat

fromArray() public method

public fromArray ( array $input )
$input array

getDomesticCarrierCodeFormattingRule() public method

getFormat() public method

public getFormat ( ) : string
return string

getLeadingDigitsPattern() public method

public getLeadingDigitsPattern ( integer $index ) : string
$index integer
return string

getNationalPrefixFormattingRule() public method

getPattern() public method

public getPattern ( ) : string
return string

hasDomesticCarrierCodeFormattingRule() public method

hasFormat() public method

public hasFormat ( ) : boolean
return boolean

hasNationalPrefixFormattingRule() public method

hasPattern() public method

public hasPattern ( ) : boolean
return boolean

isNationalPrefixOptionalWhenFormatting() public method

leadingDigitPatterns() public method

public leadingDigitPatterns ( ) : string
return string

leadingDigitsPatternSize() public method

mergeFrom() public method

public mergeFrom ( NumberFormat $other ) : NumberFormat
$other NumberFormat
return NumberFormat

setDomesticCarrierCodeFormattingRule() public method

public setDomesticCarrierCodeFormattingRule ( string $value ) : NumberFormat
$value string
return NumberFormat

setFormat() public method

public setFormat ( string $value ) : NumberFormat
$value string
return NumberFormat

setNationalPrefixFormattingRule() public method

public setNationalPrefixFormattingRule ( string $value ) : NumberFormat
$value string
return NumberFormat

setNationalPrefixOptionalWhenFormatting() public method

public setNationalPrefixOptionalWhenFormatting ( boolean $nationalPrefixOptionalWhenFormatting )
$nationalPrefixOptionalWhenFormatting boolean

setPattern() public method

public setPattern ( string $value ) : NumberFormat
$value string
return NumberFormat

toArray() public method

public toArray ( ) : array
return array

Property Details

$domesticCarrierCodeFormattingRule protected property

protected $domesticCarrierCodeFormattingRule

$format protected property

protected $format

$leadingDigitsPattern protected property

protected $leadingDigitsPattern

$nationalPrefixFormattingRule protected property

protected $nationalPrefixFormattingRule

$nationalPrefixOptionalWhenFormatting protected property

protected bool $nationalPrefixOptionalWhenFormatting
return boolean

$pattern protected property

protected $pattern