updating stubs to have fluent setters and retaining deprecated methods

This commit is contained in:
Ganesh Hegde
2013-05-28 10:15:29 +05:30
parent 50b09bdbde
commit 86643ec2df
26 changed files with 1388 additions and 404 deletions

View File

@@ -8,10 +8,11 @@ class CreditCardHistory extends \PPModel {
* @array
* @param PayPal\Api\CreditCard $credit-cards
*/
public function setCreditCards($credit-cards) {
$this->credit-cards = $credit-cards;
}
public function setCreditCards($credit_cards) {
$this->credit_cards = $credit_cards;
return $this;
}
/**
* A list of credit card resources
* @return PayPal\Api\CreditCard
@@ -19,15 +20,30 @@ class CreditCardHistory extends \PPModel {
public function getCreditCards() {
return $this->credit-cards;
}
/**
* Deprecated method
*/
public function setCredit_cards($credit_cards) {
$this->credit_cards = $credit_cards;
return $this;
}
/**
* Deprecated method
*/
public function getCredit_cards() {
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;
}
/**
* 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
@@ -35,15 +51,17 @@ class CreditCardHistory extends \PPModel {
public function getCount() {
return $this->count;
}
/**
* 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;
}
/**
* Identifier of the next element to get the next range of results.
* @return string
@@ -51,5 +69,19 @@ class CreditCardHistory extends \PPModel {
public function getNextId() {
return $this->next_id;
}
/**
* Deprecated method
*/
public function setNext_id($next_id) {
$this->next_id = $next_id;
return $this;
}
/**
* Deprecated method
*/
public function getNext_id() {
return $this->next_id;
}
}