PHP Class PayPal\Api\Phone

Inheritance: extends PayPal\Common\PPModel
Show file Open project: paypal/rest-api-sdk-php Class Usage Examples

Public Methods

Method Description
getCountryCode ( ) : string Country code (from in E.164 format)
getExtension ( ) : string Phone extension
getNationalNumber ( ) : string In-country phone number (from in E.164 format)
setCountryCode ( string $country_code ) Country code (from in E.164 format)
setExtension ( string $extension ) Phone extension
setNationalNumber ( string $national_number ) In-country phone number (from in E.164 format)

Method Details

getCountryCode() public method

Country code (from in E.164 format)
public getCountryCode ( ) : string
return string

getExtension() public method

Phone extension
public getExtension ( ) : string
return string

getNationalNumber() public method

In-country phone number (from in E.164 format)
public getNationalNumber ( ) : string
return string

setCountryCode() public method

Country code (from in E.164 format)
public setCountryCode ( string $country_code )
$country_code string

setExtension() public method

Phone extension
public setExtension ( string $extension )
$extension string

setNationalNumber() public method

In-country phone number (from in E.164 format)
public setNationalNumber ( string $national_number )
$national_number string