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,108 +1,155 @@
<?php
namespace PayPal\Api;
use PayPal\Common\PPModel;
use PayPal\Rest\ApiContext;
class CreditCardHistory extends PPModel {
/**
* A list of credit card resources
*
* @array
* @param PayPal\Api\CreditCard $credit-cards
*/
public function setCreditCards($credit_cards) {
$this->{"credit-cards"} = $credit_cards;
return $this;
}
/**
* Class CreditCardHistory
*
* @property int count
* @property string next_id
*/
class CreditCardHistory extends PPModel
{
/**
* Set Credit Cards
* A list of credit card resources
*
* @param \PayPal\Api\CreditCard $credit_cards
*
* @return $this
*/
public function setCreditCards($credit_cards)
{
$this->{"credit-cards"} = $credit_cards;
/**
* A list of credit card resources
*
* @return PayPal\Api\CreditCard
*/
public function getCreditCards() {
return $this->{"credit-cards"};
}
return $this;
}
/**
* A list of credit card resources
*
* @array
* @param PayPal\Api\CreditCard $credit-cards
* @deprecated. Instead use setCreditCards
*/
public function setCredit_cards($credit_cards) {
$this->{"credit-cards"} = $credit_cards;
return $this;
}
/**
* A list of credit card resources
*
* @return PayPal\Api\CreditCard
* @deprecated. Instead use getCreditCards
*/
public function getCredit_cards() {
return $this->{"credit-cards"};
}
/**
* Get Credit Cards
* A list of credit card resources
*
* @return \PayPal\Api\CreditCard
*/
public function getCreditCards()
{
return $this->{"credit-cards"};
}
/**
* Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items.
*
* @param integer $count
*/
public function setCount($count) {
$this->count = $count;
return $this;
}
/**
* Set Credit Cards
* A list of credit card resources
*
* @param \PayPal\Api\CreditCard $credit_cards
*
* @deprecated Use setCreditCards
*
* @return $this
*/
public function setCredit_cards($credit_cards)
{
$this->{"credit-cards"} = $credit_cards;
/**
* Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items.
*
* @return integer
*/
public function getCount() {
return $this->count;
}
return $this;
}
/**
* Get Credit Cards
* A list of credit card resources
*
* @deprecated Use getCreditCards
*
* @return \PayPal\Api\CreditCard
*/
public function getCredit_cards()
{
return $this->{"credit-cards"};
}
/**
* Identifier of the next element to get the next range of results.
*
* @param string $next_id
*/
public function setNextId($next_id) {
$this->next_id = $next_id;
return $this;
}
/**
* Set Count
* Number of items returned in each range of results
* Note that the last results range could have fewer items than the requested number of items
*
* @param int $count
*
* @return $this
*/
public function setCount($count)
{
$this->count = $count;
/**
* Identifier of the next element to get the next range of results.
*
* @return string
*/
public function getNextId() {
return $this->next_id;
}
return $this;
}
/**
* Identifier of the next element to get the next range of results.
*
* @param string $next_id
* @deprecated. Instead use setNextId
*/
public function setNext_id($next_id) {
$this->next_id = $next_id;
return $this;
}
/**
* Identifier of the next element to get the next range of results.
*
* @return string
* @deprecated. Instead use getNextId
*/
public function getNext_id() {
return $this->next_id;
}
/**
* Set Count
* Number of items returned in each range of results
* Note that the last results range could have fewer items than the requested number of items
*
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* Set Next ID
* Identifier of the next element to get the next range of results
*
* @param string $next_id
*
* @return $this
*/
public function setNextId($next_id)
{
$this->next_id = $next_id;
return $this;
}
/**
* Get Next ID
* Identifier of the next element to get the next range of results
*
* @return string
*/
public function getNextId()
{
return $this->next_id;
}
/**
* Set Next ID
* Identifier of the next element to get the next range of results
*
* @param string $next_id
*
* @deprecated Use setNextId
*
* @return $this
*/
public function setNext_id($next_id)
{
$this->next_id = $next_id;
return $this;
}
/**
* Get Next ID
* Identifier of the next element to get the next range of results
*
* @deprecated Use getNextId
*
* @return string
*/
public function getNext_id()
{
return $this->next_id;
}
}