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

@@ -9,8 +9,9 @@ class Item extends \PPModel {
*/
public function setQuantity($quantity) {
$this->quantity = $quantity;
}
return $this;
}
/**
* Number of items.
* @return string
@@ -18,15 +19,17 @@ class Item extends \PPModel {
public function getQuantity() {
return $this->quantity;
}
/**
* Name of the item.
* @param string $name
*/
public function setName($name) {
$this->name = $name;
}
return $this;
}
/**
* Name of the item.
* @return string
@@ -34,15 +37,17 @@ class Item extends \PPModel {
public function getName() {
return $this->name;
}
/**
* Cost of the item.
* @param string $price
*/
public function setPrice($price) {
$this->price = $price;
}
return $this;
}
/**
* Cost of the item.
* @return string
@@ -50,15 +55,17 @@ class Item extends \PPModel {
public function getPrice() {
return $this->price;
}
/**
* 3-letter Currency Code
* @param string $currency
*/
public function setCurrency($currency) {
$this->currency = $currency;
}
return $this;
}
/**
* 3-letter Currency Code
* @return string
@@ -66,15 +73,17 @@ class Item extends \PPModel {
public function getCurrency() {
return $this->currency;
}
/**
* Number or code to identify the item in your catalog/records.
* @param string $sku
*/
public function setSku($sku) {
$this->sku = $sku;
}
return $this;
}
/**
* Number or code to identify the item in your catalog/records.
* @return string
@@ -82,5 +91,6 @@ class Item extends \PPModel {
public function getSku() {
return $this->sku;
}
}