forked from LiveCarta/PayPal-PHP-SDK
updating stubs to have fluent setters and retaining deprecated methods
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user