forked from LiveCarta/PayPal-PHP-SDK
- 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
42 lines
653 B
PHP
42 lines
653 B
PHP
<?php
|
|
|
|
namespace PayPal\Api;
|
|
|
|
use PayPal\Common\PayPalModel;
|
|
|
|
/**
|
|
* Class Address
|
|
*
|
|
* Base Address object used as billing address in a payment or extended for Shipping Address.
|
|
*
|
|
* @package PayPal\Api
|
|
*
|
|
* @property string phone
|
|
*/
|
|
class Address extends BaseAddress
|
|
{
|
|
/**
|
|
* Phone number in E.123 format.
|
|
*
|
|
* @param string $phone
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setPhone($phone)
|
|
{
|
|
$this->phone = $phone;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Phone number in E.123 format.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getPhone()
|
|
{
|
|
return $this->phone;
|
|
}
|
|
|
|
}
|