PHP Class libphonenumber\PhoneMetadata

Exibir arquivo Open project: giggsey/libphonenumber-for-php Class Usage Examples

Protected Properties

Property Type Description
$carrierSpecific PhoneNumberDesc
$countryCode integer
$emergency
$fixedLine
$generalDesc
$id string
$internationalPrefix
$intlNumberFormat NumberFormat[]
$leadingDigits
$leadingZeroPossible
$mainCountryForCode
$mobile PhoneNumberDesc
$mobileNumberPortableRegion
$nationalPrefix
$nationalPrefixForParsing
$nationalPrefixTransformRule
$noInternationalDialling PhoneNumberDesc
$numberFormat
$pager
$personalNumber
$preferredExtnPrefix
$preferredInternationalPrefix
$premiumRate
$sameMobileAndFixedLinePattern
$sharedCost
$short_code PhoneNumberDesc
$standard_rate PhoneNumberDesc
$tollFree
$uan
$voicemail
$voip

Public Methods

Method Description
addIntlNumberFormat ( NumberFormat $value )
addNumberFormat ( NumberFormat $value )
clearIntlNumberFormat ( )
clearLeadingZeroPossible ( )
clearMainCountryForCode ( )
clearMobileNumberPortableRegion ( )
clearNationalPrefix ( )
clearNationalPrefixTransformRule ( )
clearPreferredExtnPrefix ( )
clearPreferredInternationalPrefix ( )
clearSameMobileAndFixedLinePattern ( )
fromArray ( array $input ) : PhoneMetadata
getCarrierSpecific ( )
getCountryCode ( ) : integer
getEmergency ( ) : PhoneNumberDesc
getFixedLine ( ) : PhoneNumberDesc
getGeneralDesc ( ) : PhoneNumberDesc
getId ( ) : string
getInternationalPrefix ( )
getIntlNumberFormat ( $index )
getLeadingDigits ( )
getMainCountryForCode ( )
getMobile ( ) : PhoneNumberDesc
getNationalPrefix ( )
getNationalPrefixForParsing ( )
getNationalPrefixTransformRule ( )
getNoInternationalDialling ( )
getNumberFormat ( integer $index ) : NumberFormat
getPager ( ) : PhoneNumberDesc
getPersonalNumber ( ) : PhoneNumberDesc
getPreferredExtnPrefix ( )
getPreferredInternationalPrefix ( )
getPremiumRate ( ) : PhoneNumberDesc
getSharedCost ( ) : PhoneNumberDesc
getShortCode ( )
getStandardRate ( )
getTollFree ( ) : PhoneNumberDesc
getUan ( ) : PhoneNumberDesc
getVoicemail ( ) : PhoneNumberDesc
getVoip ( ) : PhoneNumberDesc
hasCarrierSpecific ( )
hasCountryCode ( ) : boolean
hasEmergency ( )
hasFixedLine ( )
hasGeneralDesc ( )
hasId ( ) : boolean
hasInternationalPrefix ( )
hasLeadingDigits ( ) : boolean
hasLeadingZeroPossible ( )
hasMainCountryForCode ( )
hasMobile ( )
hasMobileNumberPortableRegion ( )
hasNationalPrefix ( )
hasNationalPrefixForParsing ( )
hasNationalPrefixTransformRule ( )
hasNoInternationalDialling ( )
hasPager ( )
hasPersonalNumber ( )
hasPreferredExtnPrefix ( )
hasPreferredInternationalPrefix ( )
hasPremiumRate ( )
hasSameMobileAndFixedLinePattern ( )
hasSharedCost ( )
hasShortCode ( )
hasStandardRate ( )
hasTollFree ( )
hasUan ( )
hasVoicemail ( )
hasVoip ( )
intlNumberFormatSize ( )
intlNumberFormats ( )
isLeadingZeroPossible ( )
isMainCountryForCode ( )
isMobileNumberPortableRegion ( )
isSameMobileAndFixedLinePattern ( )
numberFormatSize ( )
numberFormats ( ) : NumberFormat[]
setCarrierSpecific ( PhoneNumberDesc $value )
setCountryCode ( integer $value ) : PhoneMetadata
setEmergency ( PhoneNumberDesc $value )
setFixedLine ( PhoneNumberDesc $value )
setGeneralDesc ( PhoneNumberDesc $value )
setId ( string $value ) : PhoneMetadata
setInternationalPrefix ( $value )
setLeadingDigits ( $value )
setLeadingZeroPossible ( $value )
setMainCountryForCode ( $value )
setMobile ( PhoneNumberDesc $value )
setMobileNumberPortableRegion ( $value )
setNationalPrefix ( $value )
setNationalPrefixForParsing ( $value )
setNationalPrefixTransformRule ( $value )
setNoInternationalDialling ( PhoneNumberDesc $value )
setPager ( PhoneNumberDesc $value )
setPersonalNumber ( PhoneNumberDesc $value )
setPreferredExtnPrefix ( $value )
setPreferredInternationalPrefix ( $value )
setPremiumRate ( PhoneNumberDesc $value )
setSameMobileAndFixedLinePattern ( $value )
setSharedCost ( PhoneNumberDesc $value )
setShortCode ( PhoneNumberDesc $value )
setStandardRate ( PhoneNumberDesc $value )
setTollFree ( PhoneNumberDesc $value )
setUan ( PhoneNumberDesc $value )
setVoicemail ( PhoneNumberDesc $value )
setVoip ( PhoneNumberDesc $value )
toArray ( )

Method Details

addIntlNumberFormat() public method

public addIntlNumberFormat ( NumberFormat $value )
$value NumberFormat

addNumberFormat() public method

public addNumberFormat ( NumberFormat $value )
$value NumberFormat

clearIntlNumberFormat() public method

clearLeadingZeroPossible() public method

clearMainCountryForCode() public method

clearMobileNumberPortableRegion() public method

clearNationalPrefix() public method

public clearNationalPrefix ( )

clearNationalPrefixTransformRule() public method

clearPreferredExtnPrefix() public method

clearPreferredInternationalPrefix() public method

clearSameMobileAndFixedLinePattern() public method

fromArray() public method

public fromArray ( array $input ) : PhoneMetadata
$input array
return PhoneMetadata

getCarrierSpecific() public method

public getCarrierSpecific ( )

getCountryCode() public method

public getCountryCode ( ) : integer
return integer

getEmergency() public method

public getEmergency ( ) : PhoneNumberDesc
return PhoneNumberDesc

getFixedLine() public method

public getFixedLine ( ) : PhoneNumberDesc
return PhoneNumberDesc

getGeneralDesc() public method

public getGeneralDesc ( ) : PhoneNumberDesc
return PhoneNumberDesc

getId() public method

public getId ( ) : string
return string

getInternationalPrefix() public method

getIntlNumberFormat() public method

public getIntlNumberFormat ( $index )

getLeadingDigits() public method

public getLeadingDigits ( )

getMainCountryForCode() public method

getMobile() public method

public getMobile ( ) : PhoneNumberDesc
return PhoneNumberDesc

getNationalPrefix() public method

public getNationalPrefix ( )

getNationalPrefixForParsing() public method

getNationalPrefixTransformRule() public method

getNoInternationalDialling() public method

getNumberFormat() public method

public getNumberFormat ( integer $index ) : NumberFormat
$index integer
return NumberFormat

getPager() public method

public getPager ( ) : PhoneNumberDesc
return PhoneNumberDesc

getPersonalNumber() public method

public getPersonalNumber ( ) : PhoneNumberDesc
return PhoneNumberDesc

getPreferredExtnPrefix() public method

getPreferredInternationalPrefix() public method

getPremiumRate() public method

public getPremiumRate ( ) : PhoneNumberDesc
return PhoneNumberDesc

getSharedCost() public method

public getSharedCost ( ) : PhoneNumberDesc
return PhoneNumberDesc

getShortCode() public method

public getShortCode ( )

getStandardRate() public method

public getStandardRate ( )

getTollFree() public method

public getTollFree ( ) : PhoneNumberDesc
return PhoneNumberDesc

getUan() public method

public getUan ( ) : PhoneNumberDesc
return PhoneNumberDesc

getVoicemail() public method

public getVoicemail ( ) : PhoneNumberDesc
return PhoneNumberDesc

getVoip() public method

public getVoip ( ) : PhoneNumberDesc
return PhoneNumberDesc

hasCarrierSpecific() public method

public hasCarrierSpecific ( )

hasCountryCode() public method

public hasCountryCode ( ) : boolean
return boolean

hasEmergency() public method

public hasEmergency ( )

hasFixedLine() public method

public hasFixedLine ( )

hasGeneralDesc() public method

public hasGeneralDesc ( )

hasId() public method

public hasId ( ) : boolean
return boolean

hasInternationalPrefix() public method

hasLeadingDigits() public method

public hasLeadingDigits ( ) : boolean
return boolean

hasLeadingZeroPossible() public method

hasMainCountryForCode() public method

hasMobile() public method

public hasMobile ( )

hasMobileNumberPortableRegion() public method

hasNationalPrefix() public method

public hasNationalPrefix ( )

hasNationalPrefixForParsing() public method

hasNationalPrefixTransformRule() public method

hasNoInternationalDialling() public method

hasPager() public method

public hasPager ( )

hasPersonalNumber() public method

public hasPersonalNumber ( )

hasPreferredExtnPrefix() public method

hasPreferredInternationalPrefix() public method

hasPremiumRate() public method

public hasPremiumRate ( )

hasSameMobileAndFixedLinePattern() public method

hasSharedCost() public method

public hasSharedCost ( )

hasShortCode() public method

public hasShortCode ( )

hasStandardRate() public method

public hasStandardRate ( )

hasTollFree() public method

public hasTollFree ( )

hasUan() public method

public hasUan ( )

hasVoicemail() public method

public hasVoicemail ( )

hasVoip() public method

public hasVoip ( )

intlNumberFormatSize() public method

intlNumberFormats() public method

public intlNumberFormats ( )

isLeadingZeroPossible() public method

isMainCountryForCode() public method

isMobileNumberPortableRegion() public method

isSameMobileAndFixedLinePattern() public method

numberFormatSize() public method

public numberFormatSize ( )

numberFormats() public method

public numberFormats ( ) : NumberFormat[]
return NumberFormat[]

setCarrierSpecific() public method

public setCarrierSpecific ( PhoneNumberDesc $value )
$value PhoneNumberDesc

setCountryCode() public method

public setCountryCode ( integer $value ) : PhoneMetadata
$value integer
return PhoneMetadata

setEmergency() public method

public setEmergency ( PhoneNumberDesc $value )
$value PhoneNumberDesc

setFixedLine() public method

public setFixedLine ( PhoneNumberDesc $value )
$value PhoneNumberDesc

setGeneralDesc() public method

public setGeneralDesc ( PhoneNumberDesc $value )
$value PhoneNumberDesc

setId() public method

public setId ( string $value ) : PhoneMetadata
$value string
return PhoneMetadata

setInternationalPrefix() public method

public setInternationalPrefix ( $value )

setLeadingDigits() public method

public setLeadingDigits ( $value )

setLeadingZeroPossible() public method

public setLeadingZeroPossible ( $value )

setMainCountryForCode() public method

public setMainCountryForCode ( $value )

setMobile() public method

public setMobile ( PhoneNumberDesc $value )
$value PhoneNumberDesc

setMobileNumberPortableRegion() public method

public setMobileNumberPortableRegion ( $value )

setNationalPrefix() public method

public setNationalPrefix ( $value )

setNationalPrefixForParsing() public method

public setNationalPrefixForParsing ( $value )

setNationalPrefixTransformRule() public method

public setNationalPrefixTransformRule ( $value )

setNoInternationalDialling() public method

public setNoInternationalDialling ( PhoneNumberDesc $value )
$value PhoneNumberDesc

setPager() public method

public setPager ( PhoneNumberDesc $value )
$value PhoneNumberDesc

setPersonalNumber() public method

public setPersonalNumber ( PhoneNumberDesc $value )
$value PhoneNumberDesc

setPreferredExtnPrefix() public method

public setPreferredExtnPrefix ( $value )

setPreferredInternationalPrefix() public method

setPremiumRate() public method

public setPremiumRate ( PhoneNumberDesc $value )
$value PhoneNumberDesc

setSameMobileAndFixedLinePattern() public method

setSharedCost() public method

public setSharedCost ( PhoneNumberDesc $value )
$value PhoneNumberDesc

setShortCode() public method

public setShortCode ( PhoneNumberDesc $value )
$value PhoneNumberDesc

setStandardRate() public method

public setStandardRate ( PhoneNumberDesc $value )
$value PhoneNumberDesc

setTollFree() public method

public setTollFree ( PhoneNumberDesc $value )
$value PhoneNumberDesc

setUan() public method

public setUan ( PhoneNumberDesc $value )
$value PhoneNumberDesc

setVoicemail() public method

public setVoicemail ( PhoneNumberDesc $value )
$value PhoneNumberDesc

setVoip() public method

public setVoip ( PhoneNumberDesc $value )
$value PhoneNumberDesc

toArray() public method

public toArray ( )

Property Details

$carrierSpecific protected_oe property

protected PhoneNumberDesc,libphonenumber $carrierSpecific
return PhoneNumberDesc

$countryCode protected_oe property

protected int $countryCode
return integer

$emergency protected_oe property

protected $emergency

$fixedLine protected_oe property

protected $fixedLine

$generalDesc protected_oe property

protected $generalDesc

$id protected_oe property

protected string $id
return string

$internationalPrefix protected_oe property

protected $internationalPrefix

$intlNumberFormat protected_oe property

protected NumberFormat[],libphonenumber $intlNumberFormat
return NumberFormat[]

$leadingDigits protected_oe property

protected $leadingDigits

$leadingZeroPossible protected_oe property

protected $leadingZeroPossible

$mainCountryForCode protected_oe property

protected $mainCountryForCode

$mobile protected_oe property

protected PhoneNumberDesc,libphonenumber $mobile
return PhoneNumberDesc

$mobileNumberPortableRegion protected_oe property

protected $mobileNumberPortableRegion

$nationalPrefix protected_oe property

protected $nationalPrefix

$nationalPrefixForParsing protected_oe property

protected $nationalPrefixForParsing

$nationalPrefixTransformRule protected_oe property

protected $nationalPrefixTransformRule

$noInternationalDialling protected_oe property

protected PhoneNumberDesc,libphonenumber $noInternationalDialling
return PhoneNumberDesc

$numberFormat protected_oe property

protected $numberFormat

$pager protected_oe property

protected $pager

$personalNumber protected_oe property

protected $personalNumber

$preferredExtnPrefix protected_oe property

protected $preferredExtnPrefix

$preferredInternationalPrefix protected_oe property

protected $preferredInternationalPrefix

$premiumRate protected_oe property

protected $premiumRate

$sameMobileAndFixedLinePattern protected_oe property

protected $sameMobileAndFixedLinePattern

$sharedCost protected_oe property

protected $sharedCost

$short_code protected_oe property

protected PhoneNumberDesc,libphonenumber $short_code
return PhoneNumberDesc

$standard_rate protected_oe property

protected PhoneNumberDesc,libphonenumber $standard_rate
return PhoneNumberDesc

$tollFree protected_oe property

protected $tollFree

$uan protected_oe property

protected $uan

$voicemail protected_oe property

protected $voicemail

$voip protected_oe property

protected $voip