forked from LiveCarta/PayPal-PHP-SDK
updating stubs to have fluent setters and retaining deprecated methods
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user