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

@@ -9,8 +9,9 @@ class FundingInstrument extends \PPModel {
*/
public function setCreditCard($credit_card) {
$this->credit_card = $credit_card;
}
return $this;
}
/**
* Credit Card information.
* @return PayPal\Api\CreditCard
@@ -18,15 +19,30 @@ class FundingInstrument extends \PPModel {
public function getCreditCard() {
return $this->credit_card;
}
/**
* Deprecated method
*/
public function setCredit_card($credit_card) {
$this->credit_card = $credit_card;
return $this;
}
/**
* Deprecated method
*/
public function getCredit_card() {
return $this->credit_card;
}
/**
* Credit Card information.
* @param PayPal\Api\CreditCardToken $credit_card_token
*/
public function setCreditCardToken($credit_card_token) {
$this->credit_card_token = $credit_card_token;
}
return $this;
}
/**
* Credit Card information.
* @return PayPal\Api\CreditCardToken
@@ -34,5 +50,19 @@ class FundingInstrument extends \PPModel {
public function getCreditCardToken() {
return $this->credit_card_token;
}
/**
* Deprecated method
*/
public function setCredit_card_token($credit_card_token) {
$this->credit_card_token = $credit_card_token;
return $this;
}
/**
* Deprecated method
*/
public function getCredit_card_token() {
return $this->credit_card_token;
}
}