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 RedirectUrls extends \PPModel {
|
||||
*/
|
||||
public function setReturnUrl($return_url) {
|
||||
$this->return_url = $return_url;
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Url where the payer would be redirected to after approving the payment.
|
||||
* @return string
|
||||
@@ -18,15 +19,30 @@ class RedirectUrls extends \PPModel {
|
||||
public function getReturnUrl() {
|
||||
return $this->return_url;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deprecated method
|
||||
*/
|
||||
public function setReturn_url($return_url) {
|
||||
$this->return_url = $return_url;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Deprecated method
|
||||
*/
|
||||
public function getReturn_url() {
|
||||
return $this->return_url;
|
||||
}
|
||||
|
||||
/**
|
||||
* Url where the payer would be redirected to after canceling the payment.
|
||||
* @param string $cancel_url
|
||||
*/
|
||||
public function setCancelUrl($cancel_url) {
|
||||
$this->cancel_url = $cancel_url;
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Url where the payer would be redirected to after canceling the payment.
|
||||
* @return string
|
||||
@@ -34,5 +50,19 @@ class RedirectUrls extends \PPModel {
|
||||
public function getCancelUrl() {
|
||||
return $this->cancel_url;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deprecated method
|
||||
*/
|
||||
public function setCancel_url($cancel_url) {
|
||||
$this->cancel_url = $cancel_url;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Deprecated method
|
||||
*/
|
||||
public function getCancel_url() {
|
||||
return $this->cancel_url;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user