forked from loafle/openapi-generator-original
update coding style based on CodeSniffer
This commit is contained in:
@@ -1,4 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* Category
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Swagger\Client
|
||||
* @author http://github.com/swagger-api/swagger-codegen
|
||||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
/**
|
||||
* Copyright 2015 SmartBear Software
|
||||
*
|
||||
@@ -14,51 +25,83 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Swagger\Client\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
|
||||
class Category implements ArrayAccess {
|
||||
/** @var string[] Array of property to type mappings. Used for (de)serialization */
|
||||
/**
|
||||
* Category Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description
|
||||
* @package Swagger\Client
|
||||
* @author http://github.com/swagger-api/swagger-codegen
|
||||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class Category implements ArrayAccess
|
||||
{
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
static $swaggerTypes = array(
|
||||
'id' => 'int',
|
||||
'name' => 'string'
|
||||
);
|
||||
|
||||
/** @var string[] Array of attributes where the key is the local name, and the value is the original name */
|
||||
/**
|
||||
* Array of attributes where the key is the local name, and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
static $attributeMap = array(
|
||||
'id' => 'id',
|
||||
'name' => 'name'
|
||||
);
|
||||
|
||||
/** @var string[] Array of attributes to setter functions (for deserialization of responses) */
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
static $setters = array(
|
||||
'id' => 'setId',
|
||||
'name' => 'setName'
|
||||
);
|
||||
|
||||
/** @var string[] Array of attributes to getter functions (for serialization of requests) */
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
static $getters = array(
|
||||
'id' => 'getId',
|
||||
'name' => 'getName'
|
||||
);
|
||||
|
||||
|
||||
/** @var int $id */
|
||||
/**
|
||||
* $id
|
||||
* @var int
|
||||
*/
|
||||
protected $id;
|
||||
|
||||
/** @var string $name */
|
||||
/**
|
||||
* $name
|
||||
* @var string
|
||||
*/
|
||||
protected $name;
|
||||
|
||||
public function __construct(array $data = null) {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property value initalizing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
if ($data != null) {
|
||||
$this->id = $data["id"];
|
||||
$this->name = $data["name"];
|
||||
@@ -66,60 +109,94 @@ class Category implements ArrayAccess {
|
||||
}
|
||||
|
||||
/**
|
||||
* get id
|
||||
* Gets id
|
||||
* @return int
|
||||
*/
|
||||
public function getId() {
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* set id
|
||||
* @param int $id
|
||||
* Sets id
|
||||
* @param int $id
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id) {
|
||||
public function setId($id)
|
||||
{
|
||||
|
||||
$this->id = $id;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get name
|
||||
* Gets name
|
||||
* @return string
|
||||
*/
|
||||
public function getName() {
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* set name
|
||||
* @param string $name
|
||||
* Sets name
|
||||
* @param string $name
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($name) {
|
||||
public function setName($name)
|
||||
{
|
||||
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function offsetExists($offset) {
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
* @param integer $offset Offset
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->$offset);
|
||||
}
|
||||
|
||||
public function offsetGet($offset) {
|
||||
/**
|
||||
* Gets offset.
|
||||
* @param integer $offset Offset
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return $this->$offset;
|
||||
}
|
||||
|
||||
public function offsetSet($offset, $value) {
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
$this->$offset = $value;
|
||||
}
|
||||
|
||||
public function offsetUnset($offset) {
|
||||
/**
|
||||
* Unsets offset.
|
||||
* @param integer $offset Offset
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->$offset);
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) {
|
||||
return json_encode(get_object_vars($this), JSON_PRETTY_PRINT);
|
||||
} else {
|
||||
|
||||
@@ -1,4 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* Order
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Swagger\Client
|
||||
* @author http://github.com/swagger-api/swagger-codegen
|
||||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
/**
|
||||
* Copyright 2015 SmartBear Software
|
||||
*
|
||||
@@ -14,20 +25,31 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Swagger\Client\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
|
||||
class Order implements ArrayAccess {
|
||||
/** @var string[] Array of property to type mappings. Used for (de)serialization */
|
||||
/**
|
||||
* Order Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description
|
||||
* @package Swagger\Client
|
||||
* @author http://github.com/swagger-api/swagger-codegen
|
||||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class Order implements ArrayAccess
|
||||
{
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
static $swaggerTypes = array(
|
||||
'id' => 'int',
|
||||
'pet_id' => 'int',
|
||||
@@ -37,7 +59,10 @@ class Order implements ArrayAccess {
|
||||
'complete' => 'bool'
|
||||
);
|
||||
|
||||
/** @var string[] Array of attributes where the key is the local name, and the value is the original name */
|
||||
/**
|
||||
* Array of attributes where the key is the local name, and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
static $attributeMap = array(
|
||||
'id' => 'id',
|
||||
'pet_id' => 'petId',
|
||||
@@ -47,7 +72,10 @@ class Order implements ArrayAccess {
|
||||
'complete' => 'complete'
|
||||
);
|
||||
|
||||
/** @var string[] Array of attributes to setter functions (for deserialization of responses) */
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
static $setters = array(
|
||||
'id' => 'setId',
|
||||
'pet_id' => 'setPetId',
|
||||
@@ -57,7 +85,10 @@ class Order implements ArrayAccess {
|
||||
'complete' => 'setComplete'
|
||||
);
|
||||
|
||||
/** @var string[] Array of attributes to getter functions (for serialization of requests) */
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
static $getters = array(
|
||||
'id' => 'getId',
|
||||
'pet_id' => 'getPetId',
|
||||
@@ -68,25 +99,49 @@ class Order implements ArrayAccess {
|
||||
);
|
||||
|
||||
|
||||
/** @var int $id */
|
||||
/**
|
||||
* $id
|
||||
* @var int
|
||||
*/
|
||||
protected $id;
|
||||
|
||||
/** @var int $pet_id */
|
||||
/**
|
||||
* $pet_id
|
||||
* @var int
|
||||
*/
|
||||
protected $pet_id;
|
||||
|
||||
/** @var int $quantity */
|
||||
/**
|
||||
* $quantity
|
||||
* @var int
|
||||
*/
|
||||
protected $quantity;
|
||||
|
||||
/** @var \DateTime $ship_date */
|
||||
/**
|
||||
* $ship_date
|
||||
* @var \DateTime
|
||||
*/
|
||||
protected $ship_date;
|
||||
|
||||
/** @var string $status Order Status */
|
||||
/**
|
||||
* $status Order Status
|
||||
* @var string
|
||||
*/
|
||||
protected $status;
|
||||
|
||||
/** @var bool $complete */
|
||||
/**
|
||||
* $complete
|
||||
* @var bool
|
||||
*/
|
||||
protected $complete;
|
||||
|
||||
public function __construct(array $data = null) {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property value initalizing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
if ($data != null) {
|
||||
$this->id = $data["id"];
|
||||
$this->pet_id = $data["pet_id"];
|
||||
@@ -98,95 +153,105 @@ class Order implements ArrayAccess {
|
||||
}
|
||||
|
||||
/**
|
||||
* get id
|
||||
* Gets id
|
||||
* @return int
|
||||
*/
|
||||
public function getId() {
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* set id
|
||||
* @param int $id
|
||||
* Sets id
|
||||
* @param int $id
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id) {
|
||||
public function setId($id)
|
||||
{
|
||||
|
||||
$this->id = $id;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get pet_id
|
||||
* Gets pet_id
|
||||
* @return int
|
||||
*/
|
||||
public function getPetId() {
|
||||
public function getPetId()
|
||||
{
|
||||
return $this->pet_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* set pet_id
|
||||
* @param int $pet_id
|
||||
* Sets pet_id
|
||||
* @param int $pet_id
|
||||
* @return $this
|
||||
*/
|
||||
public function setPetId($pet_id) {
|
||||
public function setPetId($pet_id)
|
||||
{
|
||||
|
||||
$this->pet_id = $pet_id;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get quantity
|
||||
* Gets quantity
|
||||
* @return int
|
||||
*/
|
||||
public function getQuantity() {
|
||||
public function getQuantity()
|
||||
{
|
||||
return $this->quantity;
|
||||
}
|
||||
|
||||
/**
|
||||
* set quantity
|
||||
* @param int $quantity
|
||||
* Sets quantity
|
||||
* @param int $quantity
|
||||
* @return $this
|
||||
*/
|
||||
public function setQuantity($quantity) {
|
||||
public function setQuantity($quantity)
|
||||
{
|
||||
|
||||
$this->quantity = $quantity;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get ship_date
|
||||
* Gets ship_date
|
||||
* @return \DateTime
|
||||
*/
|
||||
public function getShipDate() {
|
||||
public function getShipDate()
|
||||
{
|
||||
return $this->ship_date;
|
||||
}
|
||||
|
||||
/**
|
||||
* set ship_date
|
||||
* @param \DateTime $ship_date
|
||||
* Sets ship_date
|
||||
* @param \DateTime $ship_date
|
||||
* @return $this
|
||||
*/
|
||||
public function setShipDate($ship_date) {
|
||||
public function setShipDate($ship_date)
|
||||
{
|
||||
|
||||
$this->ship_date = $ship_date;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get status
|
||||
* Gets status
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus() {
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* set status
|
||||
* @param string $status
|
||||
* Sets status
|
||||
* @param string $status Order Status
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatus($status) {
|
||||
public function setStatus($status)
|
||||
{
|
||||
$allowed_values = array("placed", "approved", "delivered");
|
||||
if (!in_array($status, $allowed_values)) {
|
||||
throw new \InvalidArgumentException("Invalid value for 'status', must be one of 'placed', 'approved', 'delivered'");
|
||||
@@ -196,41 +261,73 @@ class Order implements ArrayAccess {
|
||||
}
|
||||
|
||||
/**
|
||||
* get complete
|
||||
* Gets complete
|
||||
* @return bool
|
||||
*/
|
||||
public function getComplete() {
|
||||
public function getComplete()
|
||||
{
|
||||
return $this->complete;
|
||||
}
|
||||
|
||||
/**
|
||||
* set complete
|
||||
* @param bool $complete
|
||||
* Sets complete
|
||||
* @param bool $complete
|
||||
* @return $this
|
||||
*/
|
||||
public function setComplete($complete) {
|
||||
public function setComplete($complete)
|
||||
{
|
||||
|
||||
$this->complete = $complete;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function offsetExists($offset) {
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
* @param integer $offset Offset
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->$offset);
|
||||
}
|
||||
|
||||
public function offsetGet($offset) {
|
||||
/**
|
||||
* Gets offset.
|
||||
* @param integer $offset Offset
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return $this->$offset;
|
||||
}
|
||||
|
||||
public function offsetSet($offset, $value) {
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
$this->$offset = $value;
|
||||
}
|
||||
|
||||
public function offsetUnset($offset) {
|
||||
/**
|
||||
* Unsets offset.
|
||||
* @param integer $offset Offset
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->$offset);
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) {
|
||||
return json_encode(get_object_vars($this), JSON_PRETTY_PRINT);
|
||||
} else {
|
||||
|
||||
@@ -1,4 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* Pet
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Swagger\Client
|
||||
* @author http://github.com/swagger-api/swagger-codegen
|
||||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
/**
|
||||
* Copyright 2015 SmartBear Software
|
||||
*
|
||||
@@ -14,20 +25,31 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Swagger\Client\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
|
||||
class Pet implements ArrayAccess {
|
||||
/** @var string[] Array of property to type mappings. Used for (de)serialization */
|
||||
/**
|
||||
* Pet Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description
|
||||
* @package Swagger\Client
|
||||
* @author http://github.com/swagger-api/swagger-codegen
|
||||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class Pet implements ArrayAccess
|
||||
{
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
static $swaggerTypes = array(
|
||||
'id' => 'int',
|
||||
'category' => '\Swagger\Client\Model\Category',
|
||||
@@ -37,7 +59,10 @@ class Pet implements ArrayAccess {
|
||||
'status' => 'string'
|
||||
);
|
||||
|
||||
/** @var string[] Array of attributes where the key is the local name, and the value is the original name */
|
||||
/**
|
||||
* Array of attributes where the key is the local name, and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
static $attributeMap = array(
|
||||
'id' => 'id',
|
||||
'category' => 'category',
|
||||
@@ -47,7 +72,10 @@ class Pet implements ArrayAccess {
|
||||
'status' => 'status'
|
||||
);
|
||||
|
||||
/** @var string[] Array of attributes to setter functions (for deserialization of responses) */
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
static $setters = array(
|
||||
'id' => 'setId',
|
||||
'category' => 'setCategory',
|
||||
@@ -57,7 +85,10 @@ class Pet implements ArrayAccess {
|
||||
'status' => 'setStatus'
|
||||
);
|
||||
|
||||
/** @var string[] Array of attributes to getter functions (for serialization of requests) */
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
static $getters = array(
|
||||
'id' => 'getId',
|
||||
'category' => 'getCategory',
|
||||
@@ -68,25 +99,49 @@ class Pet implements ArrayAccess {
|
||||
);
|
||||
|
||||
|
||||
/** @var int $id */
|
||||
/**
|
||||
* $id
|
||||
* @var int
|
||||
*/
|
||||
protected $id;
|
||||
|
||||
/** @var \Swagger\Client\Model\Category $category */
|
||||
/**
|
||||
* $category
|
||||
* @var \Swagger\Client\Model\Category
|
||||
*/
|
||||
protected $category;
|
||||
|
||||
/** @var string $name */
|
||||
/**
|
||||
* $name
|
||||
* @var string
|
||||
*/
|
||||
protected $name;
|
||||
|
||||
/** @var string[] $photo_urls */
|
||||
/**
|
||||
* $photo_urls
|
||||
* @var string[]
|
||||
*/
|
||||
protected $photo_urls;
|
||||
|
||||
/** @var \Swagger\Client\Model\Tag[] $tags */
|
||||
/**
|
||||
* $tags
|
||||
* @var \Swagger\Client\Model\Tag[]
|
||||
*/
|
||||
protected $tags;
|
||||
|
||||
/** @var string $status pet status in the store */
|
||||
/**
|
||||
* $status pet status in the store
|
||||
* @var string
|
||||
*/
|
||||
protected $status;
|
||||
|
||||
public function __construct(array $data = null) {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property value initalizing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
if ($data != null) {
|
||||
$this->id = $data["id"];
|
||||
$this->category = $data["category"];
|
||||
@@ -98,114 +153,126 @@ class Pet implements ArrayAccess {
|
||||
}
|
||||
|
||||
/**
|
||||
* get id
|
||||
* Gets id
|
||||
* @return int
|
||||
*/
|
||||
public function getId() {
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* set id
|
||||
* @param int $id
|
||||
* Sets id
|
||||
* @param int $id
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id) {
|
||||
public function setId($id)
|
||||
{
|
||||
|
||||
$this->id = $id;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get category
|
||||
* Gets category
|
||||
* @return \Swagger\Client\Model\Category
|
||||
*/
|
||||
public function getCategory() {
|
||||
public function getCategory()
|
||||
{
|
||||
return $this->category;
|
||||
}
|
||||
|
||||
/**
|
||||
* set category
|
||||
* @param \Swagger\Client\Model\Category $category
|
||||
* Sets category
|
||||
* @param \Swagger\Client\Model\Category $category
|
||||
* @return $this
|
||||
*/
|
||||
public function setCategory($category) {
|
||||
public function setCategory($category)
|
||||
{
|
||||
|
||||
$this->category = $category;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get name
|
||||
* Gets name
|
||||
* @return string
|
||||
*/
|
||||
public function getName() {
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* set name
|
||||
* @param string $name
|
||||
* Sets name
|
||||
* @param string $name
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($name) {
|
||||
public function setName($name)
|
||||
{
|
||||
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get photo_urls
|
||||
* Gets photo_urls
|
||||
* @return string[]
|
||||
*/
|
||||
public function getPhotoUrls() {
|
||||
public function getPhotoUrls()
|
||||
{
|
||||
return $this->photo_urls;
|
||||
}
|
||||
|
||||
/**
|
||||
* set photo_urls
|
||||
* @param string[] $photo_urls
|
||||
* Sets photo_urls
|
||||
* @param string[] $photo_urls
|
||||
* @return $this
|
||||
*/
|
||||
public function setPhotoUrls($photo_urls) {
|
||||
public function setPhotoUrls($photo_urls)
|
||||
{
|
||||
|
||||
$this->photo_urls = $photo_urls;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get tags
|
||||
* Gets tags
|
||||
* @return \Swagger\Client\Model\Tag[]
|
||||
*/
|
||||
public function getTags() {
|
||||
public function getTags()
|
||||
{
|
||||
return $this->tags;
|
||||
}
|
||||
|
||||
/**
|
||||
* set tags
|
||||
* @param \Swagger\Client\Model\Tag[] $tags
|
||||
* Sets tags
|
||||
* @param \Swagger\Client\Model\Tag[] $tags
|
||||
* @return $this
|
||||
*/
|
||||
public function setTags($tags) {
|
||||
public function setTags($tags)
|
||||
{
|
||||
|
||||
$this->tags = $tags;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get status
|
||||
* Gets status
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus() {
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* set status
|
||||
* @param string $status
|
||||
* Sets status
|
||||
* @param string $status pet status in the store
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatus($status) {
|
||||
public function setStatus($status)
|
||||
{
|
||||
$allowed_values = array("available", "pending", "sold");
|
||||
if (!in_array($status, $allowed_values)) {
|
||||
throw new \InvalidArgumentException("Invalid value for 'status', must be one of 'available', 'pending', 'sold'");
|
||||
@@ -214,23 +281,53 @@ class Pet implements ArrayAccess {
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function offsetExists($offset) {
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
* @param integer $offset Offset
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->$offset);
|
||||
}
|
||||
|
||||
public function offsetGet($offset) {
|
||||
/**
|
||||
* Gets offset.
|
||||
* @param integer $offset Offset
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return $this->$offset;
|
||||
}
|
||||
|
||||
public function offsetSet($offset, $value) {
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
$this->$offset = $value;
|
||||
}
|
||||
|
||||
public function offsetUnset($offset) {
|
||||
/**
|
||||
* Unsets offset.
|
||||
* @param integer $offset Offset
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->$offset);
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) {
|
||||
return json_encode(get_object_vars($this), JSON_PRETTY_PRINT);
|
||||
} else {
|
||||
|
||||
@@ -1,4 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* Tag
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Swagger\Client
|
||||
* @author http://github.com/swagger-api/swagger-codegen
|
||||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
/**
|
||||
* Copyright 2015 SmartBear Software
|
||||
*
|
||||
@@ -14,51 +25,83 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Swagger\Client\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
|
||||
class Tag implements ArrayAccess {
|
||||
/** @var string[] Array of property to type mappings. Used for (de)serialization */
|
||||
/**
|
||||
* Tag Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description
|
||||
* @package Swagger\Client
|
||||
* @author http://github.com/swagger-api/swagger-codegen
|
||||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class Tag implements ArrayAccess
|
||||
{
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
static $swaggerTypes = array(
|
||||
'id' => 'int',
|
||||
'name' => 'string'
|
||||
);
|
||||
|
||||
/** @var string[] Array of attributes where the key is the local name, and the value is the original name */
|
||||
/**
|
||||
* Array of attributes where the key is the local name, and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
static $attributeMap = array(
|
||||
'id' => 'id',
|
||||
'name' => 'name'
|
||||
);
|
||||
|
||||
/** @var string[] Array of attributes to setter functions (for deserialization of responses) */
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
static $setters = array(
|
||||
'id' => 'setId',
|
||||
'name' => 'setName'
|
||||
);
|
||||
|
||||
/** @var string[] Array of attributes to getter functions (for serialization of requests) */
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
static $getters = array(
|
||||
'id' => 'getId',
|
||||
'name' => 'getName'
|
||||
);
|
||||
|
||||
|
||||
/** @var int $id */
|
||||
/**
|
||||
* $id
|
||||
* @var int
|
||||
*/
|
||||
protected $id;
|
||||
|
||||
/** @var string $name */
|
||||
/**
|
||||
* $name
|
||||
* @var string
|
||||
*/
|
||||
protected $name;
|
||||
|
||||
public function __construct(array $data = null) {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property value initalizing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
if ($data != null) {
|
||||
$this->id = $data["id"];
|
||||
$this->name = $data["name"];
|
||||
@@ -66,60 +109,94 @@ class Tag implements ArrayAccess {
|
||||
}
|
||||
|
||||
/**
|
||||
* get id
|
||||
* Gets id
|
||||
* @return int
|
||||
*/
|
||||
public function getId() {
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* set id
|
||||
* @param int $id
|
||||
* Sets id
|
||||
* @param int $id
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id) {
|
||||
public function setId($id)
|
||||
{
|
||||
|
||||
$this->id = $id;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get name
|
||||
* Gets name
|
||||
* @return string
|
||||
*/
|
||||
public function getName() {
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* set name
|
||||
* @param string $name
|
||||
* Sets name
|
||||
* @param string $name
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($name) {
|
||||
public function setName($name)
|
||||
{
|
||||
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function offsetExists($offset) {
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
* @param integer $offset Offset
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->$offset);
|
||||
}
|
||||
|
||||
public function offsetGet($offset) {
|
||||
/**
|
||||
* Gets offset.
|
||||
* @param integer $offset Offset
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return $this->$offset;
|
||||
}
|
||||
|
||||
public function offsetSet($offset, $value) {
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
$this->$offset = $value;
|
||||
}
|
||||
|
||||
public function offsetUnset($offset) {
|
||||
/**
|
||||
* Unsets offset.
|
||||
* @param integer $offset Offset
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->$offset);
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) {
|
||||
return json_encode(get_object_vars($this), JSON_PRETTY_PRINT);
|
||||
} else {
|
||||
|
||||
@@ -1,4 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* User
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Swagger\Client
|
||||
* @author http://github.com/swagger-api/swagger-codegen
|
||||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
/**
|
||||
* Copyright 2015 SmartBear Software
|
||||
*
|
||||
@@ -14,20 +25,31 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Swagger\Client\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
|
||||
class User implements ArrayAccess {
|
||||
/** @var string[] Array of property to type mappings. Used for (de)serialization */
|
||||
/**
|
||||
* User Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description
|
||||
* @package Swagger\Client
|
||||
* @author http://github.com/swagger-api/swagger-codegen
|
||||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class User implements ArrayAccess
|
||||
{
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
static $swaggerTypes = array(
|
||||
'id' => 'int',
|
||||
'username' => 'string',
|
||||
@@ -39,7 +61,10 @@ class User implements ArrayAccess {
|
||||
'user_status' => 'int'
|
||||
);
|
||||
|
||||
/** @var string[] Array of attributes where the key is the local name, and the value is the original name */
|
||||
/**
|
||||
* Array of attributes where the key is the local name, and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
static $attributeMap = array(
|
||||
'id' => 'id',
|
||||
'username' => 'username',
|
||||
@@ -51,7 +76,10 @@ class User implements ArrayAccess {
|
||||
'user_status' => 'userStatus'
|
||||
);
|
||||
|
||||
/** @var string[] Array of attributes to setter functions (for deserialization of responses) */
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
static $setters = array(
|
||||
'id' => 'setId',
|
||||
'username' => 'setUsername',
|
||||
@@ -63,7 +91,10 @@ class User implements ArrayAccess {
|
||||
'user_status' => 'setUserStatus'
|
||||
);
|
||||
|
||||
/** @var string[] Array of attributes to getter functions (for serialization of requests) */
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
static $getters = array(
|
||||
'id' => 'getId',
|
||||
'username' => 'getUsername',
|
||||
@@ -76,31 +107,61 @@ class User implements ArrayAccess {
|
||||
);
|
||||
|
||||
|
||||
/** @var int $id */
|
||||
/**
|
||||
* $id
|
||||
* @var int
|
||||
*/
|
||||
protected $id;
|
||||
|
||||
/** @var string $username */
|
||||
/**
|
||||
* $username
|
||||
* @var string
|
||||
*/
|
||||
protected $username;
|
||||
|
||||
/** @var string $first_name */
|
||||
/**
|
||||
* $first_name
|
||||
* @var string
|
||||
*/
|
||||
protected $first_name;
|
||||
|
||||
/** @var string $last_name */
|
||||
/**
|
||||
* $last_name
|
||||
* @var string
|
||||
*/
|
||||
protected $last_name;
|
||||
|
||||
/** @var string $email */
|
||||
/**
|
||||
* $email
|
||||
* @var string
|
||||
*/
|
||||
protected $email;
|
||||
|
||||
/** @var string $password */
|
||||
/**
|
||||
* $password
|
||||
* @var string
|
||||
*/
|
||||
protected $password;
|
||||
|
||||
/** @var string $phone */
|
||||
/**
|
||||
* $phone
|
||||
* @var string
|
||||
*/
|
||||
protected $phone;
|
||||
|
||||
/** @var int $user_status User Status */
|
||||
/**
|
||||
* $user_status User Status
|
||||
* @var int
|
||||
*/
|
||||
protected $user_status;
|
||||
|
||||
public function __construct(array $data = null) {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property value initalizing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
if ($data != null) {
|
||||
$this->id = $data["id"];
|
||||
$this->username = $data["username"];
|
||||
@@ -114,174 +175,220 @@ class User implements ArrayAccess {
|
||||
}
|
||||
|
||||
/**
|
||||
* get id
|
||||
* Gets id
|
||||
* @return int
|
||||
*/
|
||||
public function getId() {
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* set id
|
||||
* @param int $id
|
||||
* Sets id
|
||||
* @param int $id
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id) {
|
||||
public function setId($id)
|
||||
{
|
||||
|
||||
$this->id = $id;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get username
|
||||
* Gets username
|
||||
* @return string
|
||||
*/
|
||||
public function getUsername() {
|
||||
public function getUsername()
|
||||
{
|
||||
return $this->username;
|
||||
}
|
||||
|
||||
/**
|
||||
* set username
|
||||
* @param string $username
|
||||
* Sets username
|
||||
* @param string $username
|
||||
* @return $this
|
||||
*/
|
||||
public function setUsername($username) {
|
||||
public function setUsername($username)
|
||||
{
|
||||
|
||||
$this->username = $username;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get first_name
|
||||
* Gets first_name
|
||||
* @return string
|
||||
*/
|
||||
public function getFirstName() {
|
||||
public function getFirstName()
|
||||
{
|
||||
return $this->first_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* set first_name
|
||||
* @param string $first_name
|
||||
* Sets first_name
|
||||
* @param string $first_name
|
||||
* @return $this
|
||||
*/
|
||||
public function setFirstName($first_name) {
|
||||
public function setFirstName($first_name)
|
||||
{
|
||||
|
||||
$this->first_name = $first_name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get last_name
|
||||
* Gets last_name
|
||||
* @return string
|
||||
*/
|
||||
public function getLastName() {
|
||||
public function getLastName()
|
||||
{
|
||||
return $this->last_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* set last_name
|
||||
* @param string $last_name
|
||||
* Sets last_name
|
||||
* @param string $last_name
|
||||
* @return $this
|
||||
*/
|
||||
public function setLastName($last_name) {
|
||||
public function setLastName($last_name)
|
||||
{
|
||||
|
||||
$this->last_name = $last_name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get email
|
||||
* Gets email
|
||||
* @return string
|
||||
*/
|
||||
public function getEmail() {
|
||||
public function getEmail()
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
/**
|
||||
* set email
|
||||
* @param string $email
|
||||
* Sets email
|
||||
* @param string $email
|
||||
* @return $this
|
||||
*/
|
||||
public function setEmail($email) {
|
||||
public function setEmail($email)
|
||||
{
|
||||
|
||||
$this->email = $email;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get password
|
||||
* Gets password
|
||||
* @return string
|
||||
*/
|
||||
public function getPassword() {
|
||||
public function getPassword()
|
||||
{
|
||||
return $this->password;
|
||||
}
|
||||
|
||||
/**
|
||||
* set password
|
||||
* @param string $password
|
||||
* Sets password
|
||||
* @param string $password
|
||||
* @return $this
|
||||
*/
|
||||
public function setPassword($password) {
|
||||
public function setPassword($password)
|
||||
{
|
||||
|
||||
$this->password = $password;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get phone
|
||||
* Gets phone
|
||||
* @return string
|
||||
*/
|
||||
public function getPhone() {
|
||||
public function getPhone()
|
||||
{
|
||||
return $this->phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* set phone
|
||||
* @param string $phone
|
||||
* Sets phone
|
||||
* @param string $phone
|
||||
* @return $this
|
||||
*/
|
||||
public function setPhone($phone) {
|
||||
public function setPhone($phone)
|
||||
{
|
||||
|
||||
$this->phone = $phone;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* get user_status
|
||||
* Gets user_status
|
||||
* @return int
|
||||
*/
|
||||
public function getUserStatus() {
|
||||
public function getUserStatus()
|
||||
{
|
||||
return $this->user_status;
|
||||
}
|
||||
|
||||
/**
|
||||
* set user_status
|
||||
* @param int $user_status
|
||||
* Sets user_status
|
||||
* @param int $user_status User Status
|
||||
* @return $this
|
||||
*/
|
||||
public function setUserStatus($user_status) {
|
||||
public function setUserStatus($user_status)
|
||||
{
|
||||
|
||||
$this->user_status = $user_status;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function offsetExists($offset) {
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
* @param integer $offset Offset
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->$offset);
|
||||
}
|
||||
|
||||
public function offsetGet($offset) {
|
||||
/**
|
||||
* Gets offset.
|
||||
* @param integer $offset Offset
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return $this->$offset;
|
||||
}
|
||||
|
||||
public function offsetSet($offset, $value) {
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
$this->$offset = $value;
|
||||
}
|
||||
|
||||
public function offsetUnset($offset) {
|
||||
/**
|
||||
* Unsets offset.
|
||||
* @param integer $offset Offset
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->$offset);
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) {
|
||||
return json_encode(get_object_vars($this), JSON_PRETTY_PRINT);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user