forked from LiveCarta/PayPal-PHP-SDK
Cleaned up Code Comments and added Type-Hinting to all Class/Functions closes #42
This commit is contained in:
@@ -1,47 +1,70 @@
|
||||
<?php
|
||||
|
||||
namespace PayPal\Api;
|
||||
|
||||
use PayPal\Common\PPModel;
|
||||
use PayPal\Rest\ApiContext;
|
||||
|
||||
class ShippingAddress extends Address {
|
||||
/**
|
||||
* Name of the recipient at this address.
|
||||
*
|
||||
* @param string $recipient_name
|
||||
*/
|
||||
public function setRecipientName($recipient_name) {
|
||||
$this->recipient_name = $recipient_name;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Class ShippingAddress
|
||||
*
|
||||
* @property string recipient_name
|
||||
*/
|
||||
class ShippingAddress extends Address
|
||||
{
|
||||
/**
|
||||
* Set Recipient Name
|
||||
* Name of the recipient at this address
|
||||
*
|
||||
* @param string $recipient_name
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRecipientName($recipient_name)
|
||||
{
|
||||
$this->recipient_name = $recipient_name;
|
||||
|
||||
/**
|
||||
* Name of the recipient at this address.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRecipientName() {
|
||||
return $this->recipient_name;
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of the recipient at this address.
|
||||
*
|
||||
* @param string $recipient_name
|
||||
* @deprecated. Instead use setRecipientName
|
||||
*/
|
||||
public function setRecipient_name($recipient_name) {
|
||||
$this->recipient_name = $recipient_name;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Name of the recipient at this address.
|
||||
*
|
||||
* @return string
|
||||
* @deprecated. Instead use getRecipientName
|
||||
*/
|
||||
public function getRecipient_name() {
|
||||
return $this->recipient_name;
|
||||
}
|
||||
/**
|
||||
* Get Recipient Name
|
||||
* Name of the recipient at this address
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRecipientName()
|
||||
{
|
||||
return $this->recipient_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Recipient Name
|
||||
* Name of the recipient at this address
|
||||
*
|
||||
* @param string $recipient_name
|
||||
*
|
||||
* @deprecated Use setRecipientName
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRecipient_name($recipient_name)
|
||||
{
|
||||
$this->recipient_name = $recipient_name;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Recipient Name
|
||||
* Name of the recipient at this address
|
||||
*
|
||||
* @deprecated Use getRecipientName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRecipient_name()
|
||||
{
|
||||
return $this->recipient_name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user