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,68 +1,96 @@
|
||||
<?php
|
||||
|
||||
namespace PayPal\Api;
|
||||
|
||||
use PayPal\Common\PPModel;
|
||||
use PayPal\Rest\ApiContext;
|
||||
|
||||
class PaymentExecution extends PPModel {
|
||||
/**
|
||||
* PayPal assigned Payer ID returned in the approval return url.
|
||||
*
|
||||
* @param string $payer_id
|
||||
*/
|
||||
public function setPayerId($payer_id) {
|
||||
$this->payer_id = $payer_id;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Class PaymentExecution
|
||||
*
|
||||
* @property string payer_id
|
||||
* @property \PayPal\Api\Transactions transactions
|
||||
*/
|
||||
class PaymentExecution extends PPModel
|
||||
{
|
||||
/**
|
||||
* Set Payer ID
|
||||
* PayPal assigned Payer ID returned in the approval return url
|
||||
*
|
||||
* @param string $payer_id
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayerId($payer_id)
|
||||
{
|
||||
$this->payer_id = $payer_id;
|
||||
|
||||
/**
|
||||
* PayPal assigned Payer ID returned in the approval return url.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayerId() {
|
||||
return $this->payer_id;
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* PayPal assigned Payer ID returned in the approval return url.
|
||||
*
|
||||
* @param string $payer_id
|
||||
* @deprecated. Instead use setPayerId
|
||||
*/
|
||||
public function setPayer_id($payer_id) {
|
||||
$this->payer_id = $payer_id;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* PayPal assigned Payer ID returned in the approval return url.
|
||||
*
|
||||
* @return string
|
||||
* @deprecated. Instead use getPayerId
|
||||
*/
|
||||
public function getPayer_id() {
|
||||
return $this->payer_id;
|
||||
}
|
||||
/**
|
||||
* Get Payer ID
|
||||
* PayPal assigned Payer ID returned in the approval return url
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayerId()
|
||||
{
|
||||
return $this->payer_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* If the amount needs to be updated after obtaining the PayPal Payer info (eg. shipping address), it can be updated using this element.
|
||||
*
|
||||
* @array
|
||||
* @param PayPal\Api\Transactions $transactions
|
||||
*/
|
||||
public function setTransactions($transactions) {
|
||||
$this->transactions = $transactions;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Set Payer ID
|
||||
* PayPal assigned Payer ID returned in the approval return url
|
||||
*
|
||||
* @param string $payer_id
|
||||
*
|
||||
* @deprecated Use setPayerId
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayer_id($payer_id)
|
||||
{
|
||||
$this->payer_id = $payer_id;
|
||||
|
||||
/**
|
||||
* If the amount needs to be updated after obtaining the PayPal Payer info (eg. shipping address), it can be updated using this element.
|
||||
*
|
||||
* @return PayPal\Api\Transactions
|
||||
*/
|
||||
public function getTransactions() {
|
||||
return $this->transactions;
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Payer ID
|
||||
* PayPal assigned Payer ID returned in the approval return url
|
||||
*
|
||||
* @deprecated Use getPayerId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayer_id()
|
||||
{
|
||||
return $this->payer_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Transactions
|
||||
* If the amount needs to be updated after obtaining the PayPal Payer info (eg. shipping address), it can be updated using this element
|
||||
*
|
||||
* @param \PayPal\Api\Transactions $transactions
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTransactions($transactions)
|
||||
{
|
||||
$this->transactions = $transactions;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Transactions
|
||||
* If the amount needs to be updated after obtaining the PayPal Payer info (eg. shipping address), it can be updated using this element
|
||||
*
|
||||
* @return \PayPal\Api\Transactions
|
||||
*/
|
||||
public function getTransactions()
|
||||
{
|
||||
return $this->transactions;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user