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

@@ -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;
}
}