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 Links extends \PPModel {
*/
public function setHref($href) {
$this->href = $href;
}
return $this;
}
/**
*
* @return string
@@ -18,15 +19,17 @@ class Links extends \PPModel {
public function getHref() {
return $this->href;
}
/**
*
* @param string $rel
*/
public function setRel($rel) {
$this->rel = $rel;
}
return $this;
}
/**
*
* @return string
@@ -34,15 +37,17 @@ class Links extends \PPModel {
public function getRel() {
return $this->rel;
}
/**
*
* @param PayPal\Api\HyperSchema $targetSchema
*/
public function setTargetSchema($targetSchema) {
$this->targetSchema = $targetSchema;
}
return $this;
}
/**
*
* @return PayPal\Api\HyperSchema
@@ -50,15 +55,30 @@ class Links extends \PPModel {
public function getTargetSchema() {
return $this->targetSchema;
}
/**
* Deprecated method
*/
public function setTargetschema($targetSchema) {
$this->targetSchema = $targetSchema;
return $this;
}
/**
* Deprecated method
*/
public function getTargetschema() {
return $this->targetSchema;
}
/**
*
* @param string $method
*/
public function setMethod($method) {
$this->method = $method;
}
return $this;
}
/**
*
* @return string
@@ -66,15 +86,17 @@ class Links extends \PPModel {
public function getMethod() {
return $this->method;
}
/**
*
* @param string $enctype
*/
public function setEnctype($enctype) {
$this->enctype = $enctype;
}
return $this;
}
/**
*
* @return string
@@ -82,15 +104,17 @@ class Links extends \PPModel {
public function getEnctype() {
return $this->enctype;
}
/**
*
* @param PayPal\Api\HyperSchema $schema
*/
public function setSchema($schema) {
$this->schema = $schema;
}
return $this;
}
/**
*
* @return PayPal\Api\HyperSchema
@@ -98,5 +122,6 @@ class Links extends \PPModel {
public function getSchema() {
return $this->schema;
}
}