Cleaned up Code Comments and added Type-Hinting to all Class/Functions closes #42

This commit is contained in:
Avi Das
2014-05-01 12:34:33 -05:00
30 changed files with 5670 additions and 3932 deletions

View File

@@ -1,128 +1,163 @@
<?php
namespace PayPal\Api;
use PayPal\Common\PPModel;
use PayPal\Rest\ApiContext;
class Links extends PPModel {
/**
*
*
* @param string $href
*/
public function setHref($href) {
$this->href = $href;
return $this;
}
/**
* Class Links
*
* @property string href
* @property string rel
* @property \PayPal\Api\HyperSchema targetSchema
* @property string method
* @property string enctype
* @property \PayPal\Api\HyperSchema schema
*/
class Links extends PPModel
{
/**
* Set Href
*
* @param string $href
*
* @return $this
*/
public function setHref($href)
{
$this->href = $href;
/**
*
*
* @return string
*/
public function getHref() {
return $this->href;
}
return $this;
}
/**
* Get Href
*
* @return string
*/
public function getHref()
{
return $this->href;
}
/**
*
*
* @param string $rel
*/
public function setRel($rel) {
$this->rel = $rel;
return $this;
}
/**
* Set Rel
*
* @param string $rel
*
* @return $this
*/
public function setRel($rel)
{
$this->rel = $rel;
/**
*
*
* @return string
*/
public function getRel() {
return $this->rel;
}
return $this;
}
/**
* Get Rel
*
* @return string
*/
public function getRel()
{
return $this->rel;
}
/**
*
*
* @param PayPal\Api\HyperSchema $targetSchema
*/
public function setTargetSchema($targetSchema) {
$this->targetSchema = $targetSchema;
return $this;
}
/**
* Set Target Schema
*
* @param \PayPal\Api\HyperSchema $targetSchema
*
* @return $this
*/
public function setTargetSchema($targetSchema)
{
$this->targetSchema = $targetSchema;
/**
*
*
* @return PayPal\Api\HyperSchema
*/
public function getTargetSchema() {
return $this->targetSchema;
}
return $this;
}
/**
* Get Target Schema
*
* @return \PayPal\Api\HyperSchema
*/
public function getTargetSchema()
{
return $this->targetSchema;
}
/**
*
*
* @param string $method
*/
public function setMethod($method) {
$this->method = $method;
return $this;
}
/**
* Set Method
*
* @param string $method
*
* @return $this
*/
public function setMethod($method)
{
$this->method = $method;
/**
*
*
* @return string
*/
public function getMethod() {
return $this->method;
}
return $this;
}
/**
* Get Method
*
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
*
*
* @param string $enctype
*/
public function setEnctype($enctype) {
$this->enctype = $enctype;
return $this;
}
/**
* Set Enctype
*
* @param string $enctype
*
* @return $this
*/
public function setEnctype($enctype)
{
$this->enctype = $enctype;
/**
*
*
* @return string
*/
public function getEnctype() {
return $this->enctype;
}
return $this;
}
/**
* Get Enctype
*
* @return string
*/
public function getEnctype()
{
return $this->enctype;
}
/**
*
*
* @param PayPal\Api\HyperSchema $schema
*/
public function setSchema($schema) {
$this->schema = $schema;
return $this;
}
/**
*
*
* @return PayPal\Api\HyperSchema
*/
public function getSchema() {
return $this->schema;
}
/**
* Set Schema
*
* @param \PayPal\Api\HyperSchema $schema
*
* @return $this
*/
public function setSchema($schema)
{
$this->schema = $schema;
return $this;
}
/**
* Get Schema
*
* @return \PayPal\Api\HyperSchema
*/
public function getSchema()
{
return $this->schema;
}
}