Cleaned up Code Comments and added Type-Hinting to all Class/Functions closes #42

This commit is contained in:
Avi Das
2014-05-01 12:34:33 -05:00
30 changed files with 5670 additions and 3932 deletions

View File

@@ -1,88 +1,117 @@
<?php
namespace PayPal\Api;
use PayPal\Common\PPModel;
use PayPal\Rest\ApiContext;
class RelatedResources extends PPModel {
/**
* A sale transaction
*
* @param PayPal\Api\Sale $sale
*/
public function setSale($sale) {
$this->sale = $sale;
return $this;
}
/**
* Class RelatedResources
*
* @property \PayPal\Api\Sale sale
* @property \PayPal\Api\Authorization authorization
* @property \PayPal\Api\Capture capture
* @property \PayPal\Api\Refund refund
*/
class RelatedResources extends PPModel
{
/**
* Set Sale
* A sale transaction
*
* @param \PayPal\Api\Sale $sale
*
* @return $this
*/
public function setSale($sale)
{
$this->sale = $sale;
return $this;
}
/**
* A sale transaction
*
* @return PayPal\Api\Sale
*/
public function getSale() {
return $this->sale;
}
/**
* Get Sale
* A sale transaction
*
* @return \PayPal\Api\Sale
*/
public function getSale()
{
return $this->sale;
}
/**
* Set Authorization
* An authorization transaction
*
* @param \PayPal\Api\Authorization $authorization
*
* @return $this
*/
public function setAuthorization($authorization)
{
$this->authorization = $authorization;
return $this;
}
/**
* An authorization transaction
*
* @param PayPal\Api\Authorization $authorization
*/
public function setAuthorization($authorization) {
$this->authorization = $authorization;
return $this;
}
/**
* Get Authorization
* An authorization transaction
*
* @return \PayPal\Api\Authorization
*/
public function getAuthorization()
{
return $this->authorization;
}
/**
* An authorization transaction
*
* @return PayPal\Api\Authorization
*/
public function getAuthorization() {
return $this->authorization;
}
/**
* Set Capture
* A capture transaction
*
* @param \PayPal\Api\Capture $capture
*
* @return $this
*/
public function setCapture($capture)
{
$this->capture = $capture;
return $this;
}
/**
* Get Capture
* A capture transaction
*
* @return \PayPal\Api\Capture
*/
public function getCapture()
{
return $this->capture;
}
/**
* A capture transaction
*
* @param PayPal\Api\Capture $capture
*/
public function setCapture($capture) {
$this->capture = $capture;
return $this;
}
/**
* A capture transaction
*
* @return PayPal\Api\Capture
*/
public function getCapture() {
return $this->capture;
}
/**
* A refund transaction
*
* @param PayPal\Api\Refund $refund
*/
public function setRefund($refund) {
$this->refund = $refund;
return $this;
}
/**
* A refund transaction
*
* @return PayPal\Api\Refund
*/
public function getRefund() {
return $this->refund;
}
/**
* Set Refund
* A refund transaction
*
* @param \PayPal\Api\Refund $refund
*
* @return $this
*/
public function setRefund($refund)
{
$this->refund = $refund;
return $this;
}
/**
* Get Refund
* A refund transaction
*
* @return \PayPal\Api\Refund
*/
public function getRefund()
{
return $this->refund;
}
}