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

This commit is contained in:
Sammie S. Taunton
2013-12-03 14:29:00 -06:00
parent caa71466fe
commit e63d28723e
30 changed files with 5686 additions and 3407 deletions

View File

@@ -1,79 +1,120 @@
<?php
namespace PayPal\Api;
use PayPal\Common\PPModel;
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;
/**
* A sale transaction
* @return PayPal\Api\Sale
*/
public function getSale() {
return $this->sale;
}
return $this;
}
/**
* Get Sale
* A sale transaction
*
* @return \PayPal\Api\Sale
*/
public function getSale()
{
return $this->sale;
}
/**
* An authorization transaction
* @param PayPal\Api\Authorization $authorization
*/
public function setAuthorization($authorization) {
$this->authorization = $authorization;
return $this;
}
/**
* Set Authorization
* An authorization transaction
*
* @param \PayPal\Api\Authorization $authorization
*
* @return $this
*/
public function setAuthorization($authorization)
{
$this->authorization = $authorization;
/**
* An authorization transaction
* @return PayPal\Api\Authorization
*/
public function getAuthorization() {
return $this->authorization;
}
return $this;
}
/**
* Get Authorization
* An authorization transaction
*
* @return \PayPal\Api\Authorization
*/
public function getAuthorization()
{
return $this->authorization;
}
/**
* A capture transaction
* @param PayPal\Api\Capture $capture
*/
public function setCapture($capture) {
$this->capture = $capture;
return $this;
}
/**
* Set Capture
* A capture transaction
*
* @param \PayPal\Api\Capture $capture
*
* @return $this
*/
public function setCapture($capture)
{
$this->capture = $capture;
/**
* A capture transaction
* @return PayPal\Api\Capture
*/
public function getCapture() {
return $this->capture;
}
return $this;
}
/**
* Get Capture
* 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;
}
}