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 49b80f76af Removing Dependency from SDK Core Project
- Copied files required for Rest API SDK
- Removed PPApiContext and directly connected APIContext with PPConfigManager
- Removed duplicate data storage of configuration and credentials.
- Code Style Fixes
- Remove build.xml file as it is not required anymore
- Updated the samples
- Updated the documentations
2014-10-06 11:16:47 -05:00

98 lines
2.1 KiB
PHP

<?php
namespace PayPal\Api;
use PayPal\Common\PPModel;
use PayPal\Rest\ApiContext;
class Phone extends PPModel
{
/**
* Country code (in E.164 format). Assume length is n.
*
* @param string $country_code
*/
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.
*
* @param string $country_code
* @deprecated. Instead use setCountryCode
*/
public function setCountry_code($country_code)
{
$this->country_code = $country_code;
return $this;
}
/**
* Country code (in E.164 format). Assume length is n.
*
* @return string
* @deprecated. Instead use getCountryCode
*/
public function getCountry_code()
{
return $this->country_code;
}
/**
* In-country phone number (in E.164 format). Maximum (15 - n) digits.
*
* @param string $national_number
*/
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.
*
* @param string $national_number
* @deprecated. Instead use setNationalNumber
*/
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.
*
* @return string
* @deprecated. Instead use getNationalNumber
*/
public function getNational_number()
{
return $this->national_number;
}
}