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 ItemList extends \PPModel {
|
||||
*/
|
||||
public function setItems($items) {
|
||||
$this->items = $items;
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* List of items.
|
||||
* @return PayPal\Api\Item
|
||||
@@ -19,15 +20,17 @@ class ItemList extends \PPModel {
|
||||
public function getItems() {
|
||||
return $this->items;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Shipping address.
|
||||
* @param PayPal\Api\ShippingAddress $shipping_address
|
||||
*/
|
||||
public function setShippingAddress($shipping_address) {
|
||||
$this->shipping_address = $shipping_address;
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Shipping address.
|
||||
* @return PayPal\Api\ShippingAddress
|
||||
@@ -35,5 +38,19 @@ class ItemList extends \PPModel {
|
||||
public function getShippingAddress() {
|
||||
return $this->shipping_address;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deprecated method
|
||||
*/
|
||||
public function setShipping_address($shipping_address) {
|
||||
$this->shipping_address = $shipping_address;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Deprecated method
|
||||
*/
|
||||
public function getShipping_address() {
|
||||
return $this->shipping_address;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user