forked from LiveCarta/PayPal-PHP-SDK
updating stubs to have fluent setters and retaining deprecated methods
This commit is contained in:
@@ -10,8 +10,9 @@ class PaymentHistory extends \PPModel {
|
||||
*/
|
||||
public function setPayments($payments) {
|
||||
$this->payments = $payments;
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A list of Payment resources
|
||||
* @return PayPal\Api\Payment
|
||||
@@ -19,15 +20,17 @@ class PaymentHistory extends \PPModel {
|
||||
public function getPayments() {
|
||||
return $this->payments;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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 +38,17 @@ class PaymentHistory 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 +56,19 @@ class PaymentHistory 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user