This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
PayPal-PHP-SDK/lib/PayPal/Api/Phone.php
japatel 29a8d8f50d Renaming Namespaces and Organizing Classes
- Updated OpenId classes to be in API namespace
- Updated PP Naming Convention to PayPal Naming Convention
- FormatConverter Class got its own namespace
- Handlers are grouped in Handler namespace
- Samples and Tests Updated Accordingly
2014-12-17 17:17:29 -06:00

141 lines
2.8 KiB
PHP

<?php
namespace PayPal\Api;
use PayPal\Common\PayPalModel;
/**
* Class Phone
*
* Representation of a phone number.
*
* @package PayPal\Api
*
* @property string country_code
* @property string national_number
* @property string extension
*/
class Phone extends PayPalModel
{
/**
* Country code (in E.164 format). Assume length is n.
*
* @param string $country_code
*
* @return $this
*/
public function setCountryCode($country_code)
{
$this->country_code = $country_code;
return $this;
}
/**
* Country code (in E.164 format). Assume length is n.
*
* @return string
*/
public function getCountryCode()
{
return $this->country_code;
}
/**
* Country code (in E.164 format). Assume length is n.
*
* @deprecated Instead use setCountryCode
*
* @param string $country_code
* @return $this
*/
public function setCountry_code($country_code)
{
$this->country_code = $country_code;
return $this;
}
/**
* Country code (in E.164 format). Assume length is n.
* @deprecated Instead use getCountryCode
*
* @return string
*/
public function getCountry_code()
{
return $this->country_code;
}
/**
* In-country phone number (in E.164 format). Maximum (15 - n) digits.
*
* @param string $national_number
*
* @return $this
*/
public function setNationalNumber($national_number)
{
$this->national_number = $national_number;
return $this;
}
/**
* In-country phone number (in E.164 format). Maximum (15 - n) digits.
*
* @return string
*/
public function getNationalNumber()
{
return $this->national_number;
}
/**
* In-country phone number (in E.164 format). Maximum (15 - n) digits.
*
* @deprecated Instead use setNationalNumber
*
* @param string $national_number
* @return $this
*/
public function setNational_number($national_number)
{
$this->national_number = $national_number;
return $this;
}
/**
* In-country phone number (in E.164 format). Maximum (15 - n) digits.
* @deprecated Instead use getNationalNumber
*
* @return string
*/
public function getNational_number()
{
return $this->national_number;
}
/**
* Phone extension
*
*
* @param string $extension
*
* @return $this
*/
public function setExtension($extension)
{
$this->extension = $extension;
return $this;
}
/**
* Phone extension
*
* @return string
*/
public function getExtension()
{
return $this->extension;
}
}