forked from loafle/openapi-generator-original
[PHP] Regenerate petstore sample
This commit is contained in:
@@ -5,7 +5,7 @@ This PHP package is automatically generated by the [Swagger Codegen](https://git
|
|||||||
|
|
||||||
- API version: 1.0.0
|
- API version: 1.0.0
|
||||||
- Package version: 1.0.0
|
- Package version: 1.0.0
|
||||||
- Build date: 2016-05-06T10:33:16.765+08:00
|
- Build date: 2016-05-06T23:45:46.258+02:00
|
||||||
- Build package: class io.swagger.codegen.languages.PhpClientCodegen
|
- Build package: class io.swagger.codegen.languages.PhpClientCodegen
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
@@ -134,12 +134,6 @@ Class | Method | HTTP request | Description
|
|||||||
## Documentation For Authorization
|
## Documentation For Authorization
|
||||||
|
|
||||||
|
|
||||||
## api_key
|
|
||||||
|
|
||||||
- **Type**: API key
|
|
||||||
- **API key parameter name**: api_key
|
|
||||||
- **Location**: HTTP header
|
|
||||||
|
|
||||||
## petstore_auth
|
## petstore_auth
|
||||||
|
|
||||||
- **Type**: OAuth
|
- **Type**: OAuth
|
||||||
@@ -149,6 +143,12 @@ Class | Method | HTTP request | Description
|
|||||||
- **write:pets**: modify pets in your account
|
- **write:pets**: modify pets in your account
|
||||||
- **read:pets**: read your pets
|
- **read:pets**: read your pets
|
||||||
|
|
||||||
|
## api_key
|
||||||
|
|
||||||
|
- **Type**: API key
|
||||||
|
- **API key parameter name**: api_key
|
||||||
|
- **Location**: HTTP header
|
||||||
|
|
||||||
|
|
||||||
## Author
|
## Author
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**class_name** | **string** | |
|
**class_name** | **string** | |
|
||||||
|
**color** | **string** | | [optional] [default to 'red']
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
# 200Response
|
# EnumClass
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**name** | **int** | | [optional]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
# EnumTest
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**enum_string** | **string** | | [optional]
|
||||||
|
**enum_integer** | **int** | | [optional]
|
||||||
|
**enum_number** | **double** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
# InlineResponse200
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**tags** | [**\Swagger\Client\Model\Tag[]**](Tag.md) | | [optional]
|
|
||||||
**id** | **int** | |
|
|
||||||
**category** | **object** | | [optional]
|
|
||||||
**status** | **string** | pet status in the store | [optional]
|
|
||||||
**name** | **string** | | [optional]
|
|
||||||
**photo_urls** | **string[]** | | [optional]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
@@ -34,6 +34,7 @@
|
|||||||
namespace Swagger\Client\Model;
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
use \ArrayAccess;
|
use \ArrayAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Animal Class Doc Comment
|
* Animal Class Doc Comment
|
||||||
*
|
*
|
||||||
@@ -57,9 +58,10 @@ class Animal implements ArrayAccess
|
|||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'class_name' => 'string'
|
'class_name' => 'string',
|
||||||
|
'color' => 'string'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function swaggerTypes() {
|
static function swaggerTypes() {
|
||||||
return self::$swaggerTypes;
|
return self::$swaggerTypes;
|
||||||
}
|
}
|
||||||
@@ -69,9 +71,10 @@ class Animal implements ArrayAccess
|
|||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'class_name' => 'className'
|
'class_name' => 'className',
|
||||||
|
'color' => 'color'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function attributeMap() {
|
static function attributeMap() {
|
||||||
return self::$attributeMap;
|
return self::$attributeMap;
|
||||||
}
|
}
|
||||||
@@ -81,9 +84,10 @@ class Animal implements ArrayAccess
|
|||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $setters = array(
|
static $setters = array(
|
||||||
'class_name' => 'setClassName'
|
'class_name' => 'setClassName',
|
||||||
|
'color' => 'setColor'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function setters() {
|
static function setters() {
|
||||||
return self::$setters;
|
return self::$setters;
|
||||||
}
|
}
|
||||||
@@ -93,7 +97,8 @@ class Animal implements ArrayAccess
|
|||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $getters = array(
|
static $getters = array(
|
||||||
'class_name' => 'getClassName'
|
'class_name' => 'getClassName',
|
||||||
|
'color' => 'getColor'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function getters() {
|
static function getters() {
|
||||||
@@ -108,13 +113,7 @@ class Animal implements ArrayAccess
|
|||||||
* Associative array for storing property values
|
* Associative array for storing property values
|
||||||
* @var mixed[]
|
* @var mixed[]
|
||||||
*/
|
*/
|
||||||
protected $container = array(
|
protected $container = array();
|
||||||
/**
|
|
||||||
* $container['class_name']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'class_name' => null,
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -122,15 +121,14 @@ class Animal implements ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
$this->container['class_name'] = isset($data['class_name']) ? $data['class_name'] : null;
|
||||||
|
$this->container['color'] = isset($data['color']) ? $data['color'] : 'red';
|
||||||
|
|
||||||
// Initialize discriminator property with the model name.
|
// Initialize discriminator property with the model name.
|
||||||
$discrimintor = array_search('className', self::$attributeMap);
|
$discrimintor = array_search('className', self::$attributeMap);
|
||||||
$this->container[$discrimintor] = static::$swaggerModelName;
|
$this->container[$discrimintor] = static::$swaggerModelName;
|
||||||
|
|
||||||
if ($data != null) {
|
|
||||||
$this->container['class_name'] = $data['class_name'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets class_name
|
* Gets class_name
|
||||||
* @return string
|
* @return string
|
||||||
@@ -151,6 +149,27 @@ class Animal implements ArrayAccess
|
|||||||
$this->container['class_name'] = $class_name;
|
$this->container['class_name'] = $class_name;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets color
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getColor()
|
||||||
|
{
|
||||||
|
return $this->container['color'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets color
|
||||||
|
* @param string $color
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setColor($color)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->container['color'] = $color;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Returns true if offset exists. False otherwise.
|
* Returns true if offset exists. False otherwise.
|
||||||
* @param integer $offset Offset
|
* @param integer $offset Offset
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
namespace Swagger\Client\Model;
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
use \ArrayAccess;
|
use \ArrayAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AnimalFarm Class Doc Comment
|
* AnimalFarm Class Doc Comment
|
||||||
*
|
*
|
||||||
@@ -59,7 +60,7 @@ class AnimalFarm implements ArrayAccess
|
|||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
static function swaggerTypes() {
|
static function swaggerTypes() {
|
||||||
return self::$swaggerTypes;
|
return self::$swaggerTypes;
|
||||||
}
|
}
|
||||||
@@ -71,7 +72,7 @@ class AnimalFarm implements ArrayAccess
|
|||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
static function attributeMap() {
|
static function attributeMap() {
|
||||||
return self::$attributeMap;
|
return self::$attributeMap;
|
||||||
}
|
}
|
||||||
@@ -83,7 +84,7 @@ class AnimalFarm implements ArrayAccess
|
|||||||
static $setters = array(
|
static $setters = array(
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
static function setters() {
|
static function setters() {
|
||||||
return self::$setters;
|
return self::$setters;
|
||||||
}
|
}
|
||||||
@@ -116,11 +117,6 @@ class AnimalFarm implements ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
if ($data != null) {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Returns true if offset exists. False otherwise.
|
* Returns true if offset exists. False otherwise.
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
namespace Swagger\Client\Model;
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
use \ArrayAccess;
|
use \ArrayAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ApiResponse Class Doc Comment
|
* ApiResponse Class Doc Comment
|
||||||
*
|
*
|
||||||
@@ -61,7 +62,7 @@ class ApiResponse implements ArrayAccess
|
|||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'message' => 'string'
|
'message' => 'string'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function swaggerTypes() {
|
static function swaggerTypes() {
|
||||||
return self::$swaggerTypes;
|
return self::$swaggerTypes;
|
||||||
}
|
}
|
||||||
@@ -75,7 +76,7 @@ class ApiResponse implements ArrayAccess
|
|||||||
'type' => 'type',
|
'type' => 'type',
|
||||||
'message' => 'message'
|
'message' => 'message'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function attributeMap() {
|
static function attributeMap() {
|
||||||
return self::$attributeMap;
|
return self::$attributeMap;
|
||||||
}
|
}
|
||||||
@@ -89,7 +90,7 @@ class ApiResponse implements ArrayAccess
|
|||||||
'type' => 'setType',
|
'type' => 'setType',
|
||||||
'message' => 'setMessage'
|
'message' => 'setMessage'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function setters() {
|
static function setters() {
|
||||||
return self::$setters;
|
return self::$setters;
|
||||||
}
|
}
|
||||||
@@ -116,25 +117,7 @@ class ApiResponse implements ArrayAccess
|
|||||||
* Associative array for storing property values
|
* Associative array for storing property values
|
||||||
* @var mixed[]
|
* @var mixed[]
|
||||||
*/
|
*/
|
||||||
protected $container = array(
|
protected $container = array();
|
||||||
/**
|
|
||||||
* $container['code']
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
'code' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['type']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'type' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['message']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'message' => null,
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -142,14 +125,11 @@ class ApiResponse implements ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||||
|
$this->container['type'] = isset($data['type']) ? $data['type'] : null;
|
||||||
if ($data != null) {
|
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||||
$this->container['code'] = $data['code'];
|
|
||||||
$this->container['type'] = $data['type'];
|
|
||||||
$this->container['message'] = $data['message'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets code
|
* Gets code
|
||||||
* @return int
|
* @return int
|
||||||
@@ -170,6 +150,7 @@ class ApiResponse implements ArrayAccess
|
|||||||
$this->container['code'] = $code;
|
$this->container['code'] = $code;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets type
|
* Gets type
|
||||||
* @return string
|
* @return string
|
||||||
@@ -190,6 +171,7 @@ class ApiResponse implements ArrayAccess
|
|||||||
$this->container['type'] = $type;
|
$this->container['type'] = $type;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets message
|
* Gets message
|
||||||
* @return string
|
* @return string
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
namespace Swagger\Client\Model;
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
use \ArrayAccess;
|
use \ArrayAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cat Class Doc Comment
|
* Cat Class Doc Comment
|
||||||
*
|
*
|
||||||
@@ -59,7 +60,7 @@ class Cat extends Animal implements ArrayAccess
|
|||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'declawed' => 'bool'
|
'declawed' => 'bool'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function swaggerTypes() {
|
static function swaggerTypes() {
|
||||||
return self::$swaggerTypes + parent::swaggerTypes();
|
return self::$swaggerTypes + parent::swaggerTypes();
|
||||||
}
|
}
|
||||||
@@ -71,7 +72,7 @@ class Cat extends Animal implements ArrayAccess
|
|||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'declawed' => 'declawed'
|
'declawed' => 'declawed'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function attributeMap() {
|
static function attributeMap() {
|
||||||
return parent::attributeMap() + self::$attributeMap;
|
return parent::attributeMap() + self::$attributeMap;
|
||||||
}
|
}
|
||||||
@@ -83,7 +84,7 @@ class Cat extends Animal implements ArrayAccess
|
|||||||
static $setters = array(
|
static $setters = array(
|
||||||
'declawed' => 'setDeclawed'
|
'declawed' => 'setDeclawed'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function setters() {
|
static function setters() {
|
||||||
return parent::setters() + self::$setters;
|
return parent::setters() + self::$setters;
|
||||||
}
|
}
|
||||||
@@ -108,13 +109,7 @@ class Cat extends Animal implements ArrayAccess
|
|||||||
* Associative array for storing property values
|
* Associative array for storing property values
|
||||||
* @var mixed[]
|
* @var mixed[]
|
||||||
*/
|
*/
|
||||||
protected $container = array(
|
protected $container = array();
|
||||||
/**
|
|
||||||
* $container['declawed']
|
|
||||||
* @var bool
|
|
||||||
*/
|
|
||||||
'declawed' => null,
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -123,11 +118,10 @@ class Cat extends Animal implements ArrayAccess
|
|||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
parent::__construct($data);
|
parent::__construct($data);
|
||||||
|
|
||||||
if ($data != null) {
|
$this->container['declawed'] = isset($data['declawed']) ? $data['declawed'] : null;
|
||||||
$this->container['declawed'] = $data['declawed'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets declawed
|
* Gets declawed
|
||||||
* @return bool
|
* @return bool
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
namespace Swagger\Client\Model;
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
use \ArrayAccess;
|
use \ArrayAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Category Class Doc Comment
|
* Category Class Doc Comment
|
||||||
*
|
*
|
||||||
@@ -60,7 +61,7 @@ class Category implements ArrayAccess
|
|||||||
'id' => 'int',
|
'id' => 'int',
|
||||||
'name' => 'string'
|
'name' => 'string'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function swaggerTypes() {
|
static function swaggerTypes() {
|
||||||
return self::$swaggerTypes;
|
return self::$swaggerTypes;
|
||||||
}
|
}
|
||||||
@@ -73,7 +74,7 @@ class Category implements ArrayAccess
|
|||||||
'id' => 'id',
|
'id' => 'id',
|
||||||
'name' => 'name'
|
'name' => 'name'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function attributeMap() {
|
static function attributeMap() {
|
||||||
return self::$attributeMap;
|
return self::$attributeMap;
|
||||||
}
|
}
|
||||||
@@ -86,7 +87,7 @@ class Category implements ArrayAccess
|
|||||||
'id' => 'setId',
|
'id' => 'setId',
|
||||||
'name' => 'setName'
|
'name' => 'setName'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function setters() {
|
static function setters() {
|
||||||
return self::$setters;
|
return self::$setters;
|
||||||
}
|
}
|
||||||
@@ -112,19 +113,7 @@ class Category implements ArrayAccess
|
|||||||
* Associative array for storing property values
|
* Associative array for storing property values
|
||||||
* @var mixed[]
|
* @var mixed[]
|
||||||
*/
|
*/
|
||||||
protected $container = array(
|
protected $container = array();
|
||||||
/**
|
|
||||||
* $container['id']
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
'id' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['name']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'name' => null,
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -132,13 +121,10 @@ class Category implements ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
|
||||||
|
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
|
||||||
if ($data != null) {
|
|
||||||
$this->container['id'] = $data['id'];
|
|
||||||
$this->container['name'] = $data['name'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets id
|
* Gets id
|
||||||
* @return int
|
* @return int
|
||||||
@@ -159,6 +145,7 @@ class Category implements ArrayAccess
|
|||||||
$this->container['id'] = $id;
|
$this->container['id'] = $id;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets name
|
* Gets name
|
||||||
* @return string
|
* @return string
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
namespace Swagger\Client\Model;
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
use \ArrayAccess;
|
use \ArrayAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dog Class Doc Comment
|
* Dog Class Doc Comment
|
||||||
*
|
*
|
||||||
@@ -59,7 +60,7 @@ class Dog extends Animal implements ArrayAccess
|
|||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'breed' => 'string'
|
'breed' => 'string'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function swaggerTypes() {
|
static function swaggerTypes() {
|
||||||
return self::$swaggerTypes + parent::swaggerTypes();
|
return self::$swaggerTypes + parent::swaggerTypes();
|
||||||
}
|
}
|
||||||
@@ -71,7 +72,7 @@ class Dog extends Animal implements ArrayAccess
|
|||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'breed' => 'breed'
|
'breed' => 'breed'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function attributeMap() {
|
static function attributeMap() {
|
||||||
return parent::attributeMap() + self::$attributeMap;
|
return parent::attributeMap() + self::$attributeMap;
|
||||||
}
|
}
|
||||||
@@ -83,7 +84,7 @@ class Dog extends Animal implements ArrayAccess
|
|||||||
static $setters = array(
|
static $setters = array(
|
||||||
'breed' => 'setBreed'
|
'breed' => 'setBreed'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function setters() {
|
static function setters() {
|
||||||
return parent::setters() + self::$setters;
|
return parent::setters() + self::$setters;
|
||||||
}
|
}
|
||||||
@@ -108,13 +109,7 @@ class Dog extends Animal implements ArrayAccess
|
|||||||
* Associative array for storing property values
|
* Associative array for storing property values
|
||||||
* @var mixed[]
|
* @var mixed[]
|
||||||
*/
|
*/
|
||||||
protected $container = array(
|
protected $container = array();
|
||||||
/**
|
|
||||||
* $container['breed']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'breed' => null,
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -123,11 +118,10 @@ class Dog extends Animal implements ArrayAccess
|
|||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
parent::__construct($data);
|
parent::__construct($data);
|
||||||
|
|
||||||
if ($data != null) {
|
$this->container['breed'] = isset($data['breed']) ? $data['breed'] : null;
|
||||||
$this->container['breed'] = $data['breed'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets breed
|
* Gets breed
|
||||||
* @return string
|
* @return string
|
||||||
|
|||||||
@@ -0,0 +1,178 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* EnumClass
|
||||||
|
*
|
||||||
|
* 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 2016 SmartBear Software
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* 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.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
|
use \ArrayAccess;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* EnumClass 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 EnumClass implements ArrayAccess
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The original name of the model.
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
static $swaggerModelName = 'EnumClass';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Array of property to type mappings. Used for (de)serialization
|
||||||
|
* @var string[]
|
||||||
|
*/
|
||||||
|
static $swaggerTypes = array(
|
||||||
|
|
||||||
|
);
|
||||||
|
|
||||||
|
static function swaggerTypes() {
|
||||||
|
return self::$swaggerTypes;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Array of attributes where the key is the local name, and the value is the original name
|
||||||
|
* @var string[]
|
||||||
|
*/
|
||||||
|
static $attributeMap = array(
|
||||||
|
|
||||||
|
);
|
||||||
|
|
||||||
|
static function attributeMap() {
|
||||||
|
return self::$attributeMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Array of attributes to setter functions (for deserialization of responses)
|
||||||
|
* @var string[]
|
||||||
|
*/
|
||||||
|
static $setters = array(
|
||||||
|
|
||||||
|
);
|
||||||
|
|
||||||
|
static function setters() {
|
||||||
|
return self::$setters;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Array of attributes to getter functions (for serialization of requests)
|
||||||
|
* @var string[]
|
||||||
|
*/
|
||||||
|
static $getters = array(
|
||||||
|
|
||||||
|
);
|
||||||
|
|
||||||
|
static function getters() {
|
||||||
|
return self::$getters;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Associative array for storing property values
|
||||||
|
* @var mixed[]
|
||||||
|
*/
|
||||||
|
protected $container = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
* @param mixed[] $data Associated array of property value initalizing the model
|
||||||
|
*/
|
||||||
|
public function __construct(array $data = null)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Returns true if offset exists. False otherwise.
|
||||||
|
* @param integer $offset Offset
|
||||||
|
* @return boolean
|
||||||
|
*/
|
||||||
|
public function offsetExists($offset)
|
||||||
|
{
|
||||||
|
return isset($this->container[$offset]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets offset.
|
||||||
|
* @param integer $offset Offset
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function offsetGet($offset)
|
||||||
|
{
|
||||||
|
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets value based on offset.
|
||||||
|
* @param integer $offset Offset
|
||||||
|
* @param mixed $value Value to be set
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function offsetSet($offset, $value)
|
||||||
|
{
|
||||||
|
if (is_null($offset)) {
|
||||||
|
$this->container[] = $value;
|
||||||
|
} else {
|
||||||
|
$this->container[$offset] = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unsets offset.
|
||||||
|
* @param integer $offset Offset
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function offsetUnset($offset)
|
||||||
|
{
|
||||||
|
unset($this->container[$offset]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the string presentation of the object
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||||
|
return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
|
||||||
|
}
|
||||||
|
|
||||||
|
return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,300 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* EnumTest
|
||||||
|
*
|
||||||
|
* 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 2016 SmartBear Software
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* 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.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
|
use \ArrayAccess;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* EnumTest 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 EnumTest implements ArrayAccess
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The original name of the model.
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
static $swaggerModelName = 'Enum_Test';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Array of property to type mappings. Used for (de)serialization
|
||||||
|
* @var string[]
|
||||||
|
*/
|
||||||
|
static $swaggerTypes = array(
|
||||||
|
'enum_string' => 'string',
|
||||||
|
'enum_integer' => 'int',
|
||||||
|
'enum_number' => 'double'
|
||||||
|
);
|
||||||
|
|
||||||
|
static function swaggerTypes() {
|
||||||
|
return self::$swaggerTypes;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Array of attributes where the key is the local name, and the value is the original name
|
||||||
|
* @var string[]
|
||||||
|
*/
|
||||||
|
static $attributeMap = array(
|
||||||
|
'enum_string' => 'enum_string',
|
||||||
|
'enum_integer' => 'enum_integer',
|
||||||
|
'enum_number' => 'enum_number'
|
||||||
|
);
|
||||||
|
|
||||||
|
static function attributeMap() {
|
||||||
|
return self::$attributeMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Array of attributes to setter functions (for deserialization of responses)
|
||||||
|
* @var string[]
|
||||||
|
*/
|
||||||
|
static $setters = array(
|
||||||
|
'enum_string' => 'setEnumString',
|
||||||
|
'enum_integer' => 'setEnumInteger',
|
||||||
|
'enum_number' => 'setEnumNumber'
|
||||||
|
);
|
||||||
|
|
||||||
|
static function setters() {
|
||||||
|
return self::$setters;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Array of attributes to getter functions (for serialization of requests)
|
||||||
|
* @var string[]
|
||||||
|
*/
|
||||||
|
static $getters = array(
|
||||||
|
'enum_string' => 'getEnumString',
|
||||||
|
'enum_integer' => 'getEnumInteger',
|
||||||
|
'enum_number' => 'getEnumNumber'
|
||||||
|
);
|
||||||
|
|
||||||
|
static function getters() {
|
||||||
|
return self::$getters;
|
||||||
|
}
|
||||||
|
|
||||||
|
const ENUM_STRING_UPPER = 'UPPER';
|
||||||
|
const ENUM_STRING_LOWER = 'lower';
|
||||||
|
const ENUM_INTEGER_1 = 1;
|
||||||
|
const ENUM_INTEGER_MINUS_1 = -1;
|
||||||
|
const ENUM_NUMBER_1_DOT_1 = 1.1;
|
||||||
|
const ENUM_NUMBER_MINUS_1_DOT_2 = -1.2;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets allowable values of the enum
|
||||||
|
* @return string[]
|
||||||
|
*/
|
||||||
|
public function getEnumStringAllowableValues() {
|
||||||
|
return [
|
||||||
|
self::ENUM_STRING_UPPER,
|
||||||
|
self::ENUM_STRING_LOWER,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets allowable values of the enum
|
||||||
|
* @return string[]
|
||||||
|
*/
|
||||||
|
public function getEnumIntegerAllowableValues() {
|
||||||
|
return [
|
||||||
|
self::ENUM_INTEGER_1,
|
||||||
|
self::ENUM_INTEGER_MINUS_1,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets allowable values of the enum
|
||||||
|
* @return string[]
|
||||||
|
*/
|
||||||
|
public function getEnumNumberAllowableValues() {
|
||||||
|
return [
|
||||||
|
self::ENUM_NUMBER_1_DOT_1,
|
||||||
|
self::ENUM_NUMBER_MINUS_1_DOT_2,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Associative array for storing property values
|
||||||
|
* @var mixed[]
|
||||||
|
*/
|
||||||
|
protected $container = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
* @param mixed[] $data Associated array of property value initalizing the model
|
||||||
|
*/
|
||||||
|
public function __construct(array $data = null)
|
||||||
|
{
|
||||||
|
$this->container['enum_string'] = isset($data['enum_string']) ? $data['enum_string'] : null;
|
||||||
|
$this->container['enum_integer'] = isset($data['enum_integer']) ? $data['enum_integer'] : null;
|
||||||
|
$this->container['enum_number'] = isset($data['enum_number']) ? $data['enum_number'] : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets enum_string
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getEnumString()
|
||||||
|
{
|
||||||
|
return $this->container['enum_string'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets enum_string
|
||||||
|
* @param string $enum_string
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setEnumString($enum_string)
|
||||||
|
{
|
||||||
|
$allowed_values = array('UPPER', 'lower');
|
||||||
|
if (!in_array($enum_string, $allowed_values)) {
|
||||||
|
throw new \InvalidArgumentException("Invalid value for 'enum_string', must be one of 'UPPER', 'lower'");
|
||||||
|
}
|
||||||
|
$this->container['enum_string'] = $enum_string;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets enum_integer
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
public function getEnumInteger()
|
||||||
|
{
|
||||||
|
return $this->container['enum_integer'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets enum_integer
|
||||||
|
* @param int $enum_integer
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setEnumInteger($enum_integer)
|
||||||
|
{
|
||||||
|
$allowed_values = array('1', '-1');
|
||||||
|
if (!in_array($enum_integer, $allowed_values)) {
|
||||||
|
throw new \InvalidArgumentException("Invalid value for 'enum_integer', must be one of '1', '-1'");
|
||||||
|
}
|
||||||
|
$this->container['enum_integer'] = $enum_integer;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets enum_number
|
||||||
|
* @return double
|
||||||
|
*/
|
||||||
|
public function getEnumNumber()
|
||||||
|
{
|
||||||
|
return $this->container['enum_number'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets enum_number
|
||||||
|
* @param double $enum_number
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setEnumNumber($enum_number)
|
||||||
|
{
|
||||||
|
$allowed_values = array('1.1', '-1.2');
|
||||||
|
if (!in_array($enum_number, $allowed_values)) {
|
||||||
|
throw new \InvalidArgumentException("Invalid value for 'enum_number', must be one of '1.1', '-1.2'");
|
||||||
|
}
|
||||||
|
$this->container['enum_number'] = $enum_number;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Returns true if offset exists. False otherwise.
|
||||||
|
* @param integer $offset Offset
|
||||||
|
* @return boolean
|
||||||
|
*/
|
||||||
|
public function offsetExists($offset)
|
||||||
|
{
|
||||||
|
return isset($this->container[$offset]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets offset.
|
||||||
|
* @param integer $offset Offset
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function offsetGet($offset)
|
||||||
|
{
|
||||||
|
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets value based on offset.
|
||||||
|
* @param integer $offset Offset
|
||||||
|
* @param mixed $value Value to be set
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function offsetSet($offset, $value)
|
||||||
|
{
|
||||||
|
if (is_null($offset)) {
|
||||||
|
$this->container[] = $value;
|
||||||
|
} else {
|
||||||
|
$this->container[$offset] = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unsets offset.
|
||||||
|
* @param integer $offset Offset
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function offsetUnset($offset)
|
||||||
|
{
|
||||||
|
unset($this->container[$offset]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the string presentation of the object
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString()
|
||||||
|
{
|
||||||
|
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||||
|
return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
|
||||||
|
}
|
||||||
|
|
||||||
|
return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -34,6 +34,7 @@
|
|||||||
namespace Swagger\Client\Model;
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
use \ArrayAccess;
|
use \ArrayAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FormatTest Class Doc Comment
|
* FormatTest Class Doc Comment
|
||||||
*
|
*
|
||||||
@@ -71,7 +72,7 @@ class FormatTest implements ArrayAccess
|
|||||||
'uuid' => 'string',
|
'uuid' => 'string',
|
||||||
'password' => 'string'
|
'password' => 'string'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function swaggerTypes() {
|
static function swaggerTypes() {
|
||||||
return self::$swaggerTypes;
|
return self::$swaggerTypes;
|
||||||
}
|
}
|
||||||
@@ -95,7 +96,7 @@ class FormatTest implements ArrayAccess
|
|||||||
'uuid' => 'uuid',
|
'uuid' => 'uuid',
|
||||||
'password' => 'password'
|
'password' => 'password'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function attributeMap() {
|
static function attributeMap() {
|
||||||
return self::$attributeMap;
|
return self::$attributeMap;
|
||||||
}
|
}
|
||||||
@@ -119,7 +120,7 @@ class FormatTest implements ArrayAccess
|
|||||||
'uuid' => 'setUuid',
|
'uuid' => 'setUuid',
|
||||||
'password' => 'setPassword'
|
'password' => 'setPassword'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function setters() {
|
static function setters() {
|
||||||
return self::$setters;
|
return self::$setters;
|
||||||
}
|
}
|
||||||
@@ -156,85 +157,7 @@ class FormatTest implements ArrayAccess
|
|||||||
* Associative array for storing property values
|
* Associative array for storing property values
|
||||||
* @var mixed[]
|
* @var mixed[]
|
||||||
*/
|
*/
|
||||||
protected $container = array(
|
protected $container = array();
|
||||||
/**
|
|
||||||
* $container['integer']
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
'integer' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['int32']
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
'int32' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['int64']
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
'int64' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['number']
|
|
||||||
* @var float
|
|
||||||
*/
|
|
||||||
'number' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['float']
|
|
||||||
* @var float
|
|
||||||
*/
|
|
||||||
'float' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['double']
|
|
||||||
* @var double
|
|
||||||
*/
|
|
||||||
'double' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['string']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'string' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['byte']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'byte' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['binary']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'binary' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['date']
|
|
||||||
* @var \DateTime
|
|
||||||
*/
|
|
||||||
'date' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['date_time']
|
|
||||||
* @var \DateTime
|
|
||||||
*/
|
|
||||||
'date_time' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['uuid']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'uuid' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['password']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'password' => null,
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -242,24 +165,21 @@ class FormatTest implements ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
$this->container['integer'] = isset($data['integer']) ? $data['integer'] : null;
|
||||||
|
$this->container['int32'] = isset($data['int32']) ? $data['int32'] : null;
|
||||||
if ($data != null) {
|
$this->container['int64'] = isset($data['int64']) ? $data['int64'] : null;
|
||||||
$this->container['integer'] = $data['integer'];
|
$this->container['number'] = isset($data['number']) ? $data['number'] : null;
|
||||||
$this->container['int32'] = $data['int32'];
|
$this->container['float'] = isset($data['float']) ? $data['float'] : null;
|
||||||
$this->container['int64'] = $data['int64'];
|
$this->container['double'] = isset($data['double']) ? $data['double'] : null;
|
||||||
$this->container['number'] = $data['number'];
|
$this->container['string'] = isset($data['string']) ? $data['string'] : null;
|
||||||
$this->container['float'] = $data['float'];
|
$this->container['byte'] = isset($data['byte']) ? $data['byte'] : null;
|
||||||
$this->container['double'] = $data['double'];
|
$this->container['binary'] = isset($data['binary']) ? $data['binary'] : null;
|
||||||
$this->container['string'] = $data['string'];
|
$this->container['date'] = isset($data['date']) ? $data['date'] : null;
|
||||||
$this->container['byte'] = $data['byte'];
|
$this->container['date_time'] = isset($data['date_time']) ? $data['date_time'] : null;
|
||||||
$this->container['binary'] = $data['binary'];
|
$this->container['uuid'] = isset($data['uuid']) ? $data['uuid'] : null;
|
||||||
$this->container['date'] = $data['date'];
|
$this->container['password'] = isset($data['password']) ? $data['password'] : null;
|
||||||
$this->container['date_time'] = $data['date_time'];
|
|
||||||
$this->container['uuid'] = $data['uuid'];
|
|
||||||
$this->container['password'] = $data['password'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets integer
|
* Gets integer
|
||||||
* @return int
|
* @return int
|
||||||
@@ -280,6 +200,7 @@ class FormatTest implements ArrayAccess
|
|||||||
$this->container['integer'] = $integer;
|
$this->container['integer'] = $integer;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets int32
|
* Gets int32
|
||||||
* @return int
|
* @return int
|
||||||
@@ -300,6 +221,7 @@ class FormatTest implements ArrayAccess
|
|||||||
$this->container['int32'] = $int32;
|
$this->container['int32'] = $int32;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets int64
|
* Gets int64
|
||||||
* @return int
|
* @return int
|
||||||
@@ -320,6 +242,7 @@ class FormatTest implements ArrayAccess
|
|||||||
$this->container['int64'] = $int64;
|
$this->container['int64'] = $int64;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets number
|
* Gets number
|
||||||
* @return float
|
* @return float
|
||||||
@@ -340,6 +263,7 @@ class FormatTest implements ArrayAccess
|
|||||||
$this->container['number'] = $number;
|
$this->container['number'] = $number;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets float
|
* Gets float
|
||||||
* @return float
|
* @return float
|
||||||
@@ -360,6 +284,7 @@ class FormatTest implements ArrayAccess
|
|||||||
$this->container['float'] = $float;
|
$this->container['float'] = $float;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets double
|
* Gets double
|
||||||
* @return double
|
* @return double
|
||||||
@@ -380,6 +305,7 @@ class FormatTest implements ArrayAccess
|
|||||||
$this->container['double'] = $double;
|
$this->container['double'] = $double;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets string
|
* Gets string
|
||||||
* @return string
|
* @return string
|
||||||
@@ -400,6 +326,7 @@ class FormatTest implements ArrayAccess
|
|||||||
$this->container['string'] = $string;
|
$this->container['string'] = $string;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets byte
|
* Gets byte
|
||||||
* @return string
|
* @return string
|
||||||
@@ -420,6 +347,7 @@ class FormatTest implements ArrayAccess
|
|||||||
$this->container['byte'] = $byte;
|
$this->container['byte'] = $byte;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets binary
|
* Gets binary
|
||||||
* @return string
|
* @return string
|
||||||
@@ -440,6 +368,7 @@ class FormatTest implements ArrayAccess
|
|||||||
$this->container['binary'] = $binary;
|
$this->container['binary'] = $binary;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets date
|
* Gets date
|
||||||
* @return \DateTime
|
* @return \DateTime
|
||||||
@@ -460,6 +389,7 @@ class FormatTest implements ArrayAccess
|
|||||||
$this->container['date'] = $date;
|
$this->container['date'] = $date;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets date_time
|
* Gets date_time
|
||||||
* @return \DateTime
|
* @return \DateTime
|
||||||
@@ -480,6 +410,7 @@ class FormatTest implements ArrayAccess
|
|||||||
$this->container['date_time'] = $date_time;
|
$this->container['date_time'] = $date_time;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets uuid
|
* Gets uuid
|
||||||
* @return string
|
* @return string
|
||||||
@@ -500,6 +431,7 @@ class FormatTest implements ArrayAccess
|
|||||||
$this->container['uuid'] = $uuid;
|
$this->container['uuid'] = $uuid;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets password
|
* Gets password
|
||||||
* @return string
|
* @return string
|
||||||
|
|||||||
@@ -1,375 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* InlineResponse200
|
|
||||||
*
|
|
||||||
* 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 2016 SmartBear Software
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* 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.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Swagger\Client\Model;
|
|
||||||
|
|
||||||
use \ArrayAccess;
|
|
||||||
/**
|
|
||||||
* InlineResponse200 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 InlineResponse200 implements ArrayAccess
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Array of property to type mappings. Used for (de)serialization
|
|
||||||
* @var string[]
|
|
||||||
*/
|
|
||||||
static $swaggerTypes = array(
|
|
||||||
'tags' => '\Swagger\Client\Model\Tag[]',
|
|
||||||
'id' => 'int',
|
|
||||||
'category' => 'object',
|
|
||||||
'status' => 'string',
|
|
||||||
'name' => 'string',
|
|
||||||
'photo_urls' => 'string[]'
|
|
||||||
);
|
|
||||||
|
|
||||||
static function swaggerTypes() {
|
|
||||||
return self::$swaggerTypes;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Array of attributes where the key is the local name, and the value is the original name
|
|
||||||
* @var string[]
|
|
||||||
*/
|
|
||||||
static $attributeMap = array(
|
|
||||||
'tags' => 'tags',
|
|
||||||
'id' => 'id',
|
|
||||||
'category' => 'category',
|
|
||||||
'status' => 'status',
|
|
||||||
'name' => 'name',
|
|
||||||
'photo_urls' => 'photoUrls'
|
|
||||||
);
|
|
||||||
|
|
||||||
static function attributeMap() {
|
|
||||||
return self::$attributeMap;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Array of attributes to setter functions (for deserialization of responses)
|
|
||||||
* @var string[]
|
|
||||||
*/
|
|
||||||
static $setters = array(
|
|
||||||
'tags' => 'setTags',
|
|
||||||
'id' => 'setId',
|
|
||||||
'category' => 'setCategory',
|
|
||||||
'status' => 'setStatus',
|
|
||||||
'name' => 'setName',
|
|
||||||
'photo_urls' => 'setPhotoUrls'
|
|
||||||
);
|
|
||||||
|
|
||||||
static function setters() {
|
|
||||||
return self::$setters;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Array of attributes to getter functions (for serialization of requests)
|
|
||||||
* @var string[]
|
|
||||||
*/
|
|
||||||
static $getters = array(
|
|
||||||
'tags' => 'getTags',
|
|
||||||
'id' => 'getId',
|
|
||||||
'category' => 'getCategory',
|
|
||||||
'status' => 'getStatus',
|
|
||||||
'name' => 'getName',
|
|
||||||
'photo_urls' => 'getPhotoUrls'
|
|
||||||
);
|
|
||||||
|
|
||||||
static function getters() {
|
|
||||||
return self::$getters;
|
|
||||||
}
|
|
||||||
|
|
||||||
const STATUS_AVAILABLE = 'available';
|
|
||||||
const STATUS_PENDING = 'pending';
|
|
||||||
const STATUS_SOLD = 'sold';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets allowable values of the enum
|
|
||||||
* @return string[]
|
|
||||||
*/
|
|
||||||
public function getStatusAllowableValues() {
|
|
||||||
return [
|
|
||||||
self::STATUS_AVAILABLE,
|
|
||||||
self::STATUS_PENDING,
|
|
||||||
self::STATUS_SOLD,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $tags
|
|
||||||
* @var \Swagger\Client\Model\Tag[]
|
|
||||||
*/
|
|
||||||
protected $tags;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $id
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
protected $id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $category
|
|
||||||
* @var object
|
|
||||||
*/
|
|
||||||
protected $category;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $status pet status in the store
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
protected $status;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $name
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
protected $name;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $photo_urls
|
|
||||||
* @var string[]
|
|
||||||
*/
|
|
||||||
protected $photo_urls;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor
|
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
|
||||||
*/
|
|
||||||
public function __construct(array $data = null)
|
|
||||||
{
|
|
||||||
|
|
||||||
if ($data != null) {
|
|
||||||
$this->tags = $data["tags"];
|
|
||||||
$this->id = $data["id"];
|
|
||||||
$this->category = $data["category"];
|
|
||||||
$this->status = $data["status"];
|
|
||||||
$this->name = $data["name"];
|
|
||||||
$this->photo_urls = $data["photo_urls"];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets tags.
|
|
||||||
* @return \Swagger\Client\Model\Tag[]
|
|
||||||
*/
|
|
||||||
public function getTags()
|
|
||||||
{
|
|
||||||
return $this->tags;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets tags.
|
|
||||||
* @param \Swagger\Client\Model\Tag[] $tags
|
|
||||||
* @return $this
|
|
||||||
*/
|
|
||||||
public function setTags($tags)
|
|
||||||
{
|
|
||||||
|
|
||||||
$this->tags = $tags;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets id.
|
|
||||||
* @return int
|
|
||||||
*/
|
|
||||||
public function getId()
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets id.
|
|
||||||
* @param int $id
|
|
||||||
* @return $this
|
|
||||||
*/
|
|
||||||
public function setId($id)
|
|
||||||
{
|
|
||||||
|
|
||||||
$this->id = $id;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets category.
|
|
||||||
* @return object
|
|
||||||
*/
|
|
||||||
public function getCategory()
|
|
||||||
{
|
|
||||||
return $this->category;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets category.
|
|
||||||
* @param object $category
|
|
||||||
* @return $this
|
|
||||||
*/
|
|
||||||
public function setCategory($category)
|
|
||||||
{
|
|
||||||
|
|
||||||
$this->category = $category;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets status.
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function getStatus()
|
|
||||||
{
|
|
||||||
return $this->status;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets status.
|
|
||||||
* @param string $status pet status in the store
|
|
||||||
* @return $this
|
|
||||||
*/
|
|
||||||
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'");
|
|
||||||
}
|
|
||||||
$this->status = $status;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets name.
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function getName()
|
|
||||||
{
|
|
||||||
return $this->name;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets name.
|
|
||||||
* @param string $name
|
|
||||||
* @return $this
|
|
||||||
*/
|
|
||||||
public function setName($name)
|
|
||||||
{
|
|
||||||
|
|
||||||
$this->name = $name;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets photo_urls.
|
|
||||||
* @return string[]
|
|
||||||
*/
|
|
||||||
public function getPhotoUrls()
|
|
||||||
{
|
|
||||||
return $this->photo_urls;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets photo_urls.
|
|
||||||
* @param string[] $photo_urls
|
|
||||||
* @return $this
|
|
||||||
*/
|
|
||||||
public function setPhotoUrls($photo_urls)
|
|
||||||
{
|
|
||||||
|
|
||||||
$this->photo_urls = $photo_urls;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns true if offset exists. False otherwise.
|
|
||||||
* @param integer $offset Offset
|
|
||||||
* @return boolean
|
|
||||||
*/
|
|
||||||
public function offsetExists($offset)
|
|
||||||
{
|
|
||||||
return isset($this->$offset);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets offset.
|
|
||||||
* @param integer $offset Offset
|
|
||||||
* @return mixed
|
|
||||||
*/
|
|
||||||
public function offsetGet($offset)
|
|
||||||
{
|
|
||||||
return $this->$offset;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Unsets offset.
|
|
||||||
* @param integer $offset Offset
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function offsetUnset($offset)
|
|
||||||
{
|
|
||||||
unset($this->$offset);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the string presentation of the object.
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function __toString()
|
|
||||||
{
|
|
||||||
if (defined('JSON_PRETTY_PRINT')) {
|
|
||||||
return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
|
|
||||||
} else {
|
|
||||||
return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
@@ -34,6 +34,7 @@
|
|||||||
namespace Swagger\Client\Model;
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
use \ArrayAccess;
|
use \ArrayAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model200Response Class Doc Comment
|
* Model200Response Class Doc Comment
|
||||||
*
|
*
|
||||||
@@ -59,7 +60,7 @@ class Model200Response implements ArrayAccess
|
|||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'name' => 'int'
|
'name' => 'int'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function swaggerTypes() {
|
static function swaggerTypes() {
|
||||||
return self::$swaggerTypes;
|
return self::$swaggerTypes;
|
||||||
}
|
}
|
||||||
@@ -71,7 +72,7 @@ class Model200Response implements ArrayAccess
|
|||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'name' => 'name'
|
'name' => 'name'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function attributeMap() {
|
static function attributeMap() {
|
||||||
return self::$attributeMap;
|
return self::$attributeMap;
|
||||||
}
|
}
|
||||||
@@ -83,7 +84,7 @@ class Model200Response implements ArrayAccess
|
|||||||
static $setters = array(
|
static $setters = array(
|
||||||
'name' => 'setName'
|
'name' => 'setName'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function setters() {
|
static function setters() {
|
||||||
return self::$setters;
|
return self::$setters;
|
||||||
}
|
}
|
||||||
@@ -108,13 +109,7 @@ class Model200Response implements ArrayAccess
|
|||||||
* Associative array for storing property values
|
* Associative array for storing property values
|
||||||
* @var mixed[]
|
* @var mixed[]
|
||||||
*/
|
*/
|
||||||
protected $container = array(
|
protected $container = array();
|
||||||
/**
|
|
||||||
* $container['name']
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
'name' => null,
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -122,12 +117,9 @@ class Model200Response implements ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
|
||||||
|
|
||||||
if ($data != null) {
|
|
||||||
$this->container['name'] = $data['name'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets name
|
* Gets name
|
||||||
* @return int
|
* @return int
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
namespace Swagger\Client\Model;
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
use \ArrayAccess;
|
use \ArrayAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ModelReturn Class Doc Comment
|
* ModelReturn Class Doc Comment
|
||||||
*
|
*
|
||||||
@@ -59,7 +60,7 @@ class ModelReturn implements ArrayAccess
|
|||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'return' => 'int'
|
'return' => 'int'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function swaggerTypes() {
|
static function swaggerTypes() {
|
||||||
return self::$swaggerTypes;
|
return self::$swaggerTypes;
|
||||||
}
|
}
|
||||||
@@ -71,7 +72,7 @@ class ModelReturn implements ArrayAccess
|
|||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'return' => 'return'
|
'return' => 'return'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function attributeMap() {
|
static function attributeMap() {
|
||||||
return self::$attributeMap;
|
return self::$attributeMap;
|
||||||
}
|
}
|
||||||
@@ -83,7 +84,7 @@ class ModelReturn implements ArrayAccess
|
|||||||
static $setters = array(
|
static $setters = array(
|
||||||
'return' => 'setReturn'
|
'return' => 'setReturn'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function setters() {
|
static function setters() {
|
||||||
return self::$setters;
|
return self::$setters;
|
||||||
}
|
}
|
||||||
@@ -108,13 +109,7 @@ class ModelReturn implements ArrayAccess
|
|||||||
* Associative array for storing property values
|
* Associative array for storing property values
|
||||||
* @var mixed[]
|
* @var mixed[]
|
||||||
*/
|
*/
|
||||||
protected $container = array(
|
protected $container = array();
|
||||||
/**
|
|
||||||
* $container['return']
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
'return' => null,
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -122,12 +117,9 @@ class ModelReturn implements ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
$this->container['return'] = isset($data['return']) ? $data['return'] : null;
|
||||||
|
|
||||||
if ($data != null) {
|
|
||||||
$this->container['return'] = $data['return'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets return
|
* Gets return
|
||||||
* @return int
|
* @return int
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
namespace Swagger\Client\Model;
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
use \ArrayAccess;
|
use \ArrayAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name Class Doc Comment
|
* Name Class Doc Comment
|
||||||
*
|
*
|
||||||
@@ -61,7 +62,7 @@ class Name implements ArrayAccess
|
|||||||
'snake_case' => 'int',
|
'snake_case' => 'int',
|
||||||
'property' => 'string'
|
'property' => 'string'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function swaggerTypes() {
|
static function swaggerTypes() {
|
||||||
return self::$swaggerTypes;
|
return self::$swaggerTypes;
|
||||||
}
|
}
|
||||||
@@ -75,7 +76,7 @@ class Name implements ArrayAccess
|
|||||||
'snake_case' => 'snake_case',
|
'snake_case' => 'snake_case',
|
||||||
'property' => 'property'
|
'property' => 'property'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function attributeMap() {
|
static function attributeMap() {
|
||||||
return self::$attributeMap;
|
return self::$attributeMap;
|
||||||
}
|
}
|
||||||
@@ -89,7 +90,7 @@ class Name implements ArrayAccess
|
|||||||
'snake_case' => 'setSnakeCase',
|
'snake_case' => 'setSnakeCase',
|
||||||
'property' => 'setProperty'
|
'property' => 'setProperty'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function setters() {
|
static function setters() {
|
||||||
return self::$setters;
|
return self::$setters;
|
||||||
}
|
}
|
||||||
@@ -116,25 +117,7 @@ class Name implements ArrayAccess
|
|||||||
* Associative array for storing property values
|
* Associative array for storing property values
|
||||||
* @var mixed[]
|
* @var mixed[]
|
||||||
*/
|
*/
|
||||||
protected $container = array(
|
protected $container = array();
|
||||||
/**
|
|
||||||
* $container['name']
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
'name' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['snake_case']
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
'snake_case' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['property']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'property' => null,
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -142,14 +125,11 @@ class Name implements ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
|
||||||
|
$this->container['snake_case'] = isset($data['snake_case']) ? $data['snake_case'] : null;
|
||||||
if ($data != null) {
|
$this->container['property'] = isset($data['property']) ? $data['property'] : null;
|
||||||
$this->container['name'] = $data['name'];
|
|
||||||
$this->container['snake_case'] = $data['snake_case'];
|
|
||||||
$this->container['property'] = $data['property'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets name
|
* Gets name
|
||||||
* @return int
|
* @return int
|
||||||
@@ -170,6 +150,7 @@ class Name implements ArrayAccess
|
|||||||
$this->container['name'] = $name;
|
$this->container['name'] = $name;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets snake_case
|
* Gets snake_case
|
||||||
* @return int
|
* @return int
|
||||||
@@ -190,6 +171,7 @@ class Name implements ArrayAccess
|
|||||||
$this->container['snake_case'] = $snake_case;
|
$this->container['snake_case'] = $snake_case;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets property
|
* Gets property
|
||||||
* @return string
|
* @return string
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
namespace Swagger\Client\Model;
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
use \ArrayAccess;
|
use \ArrayAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Order Class Doc Comment
|
* Order Class Doc Comment
|
||||||
*
|
*
|
||||||
@@ -64,7 +65,7 @@ class Order implements ArrayAccess
|
|||||||
'status' => 'string',
|
'status' => 'string',
|
||||||
'complete' => 'bool'
|
'complete' => 'bool'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function swaggerTypes() {
|
static function swaggerTypes() {
|
||||||
return self::$swaggerTypes;
|
return self::$swaggerTypes;
|
||||||
}
|
}
|
||||||
@@ -81,7 +82,7 @@ class Order implements ArrayAccess
|
|||||||
'status' => 'status',
|
'status' => 'status',
|
||||||
'complete' => 'complete'
|
'complete' => 'complete'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function attributeMap() {
|
static function attributeMap() {
|
||||||
return self::$attributeMap;
|
return self::$attributeMap;
|
||||||
}
|
}
|
||||||
@@ -98,7 +99,7 @@ class Order implements ArrayAccess
|
|||||||
'status' => 'setStatus',
|
'status' => 'setStatus',
|
||||||
'complete' => 'setComplete'
|
'complete' => 'setComplete'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function setters() {
|
static function setters() {
|
||||||
return self::$setters;
|
return self::$setters;
|
||||||
}
|
}
|
||||||
@@ -143,43 +144,7 @@ class Order implements ArrayAccess
|
|||||||
* Associative array for storing property values
|
* Associative array for storing property values
|
||||||
* @var mixed[]
|
* @var mixed[]
|
||||||
*/
|
*/
|
||||||
protected $container = array(
|
protected $container = array();
|
||||||
/**
|
|
||||||
* $container['id']
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
'id' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['pet_id']
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
'pet_id' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['quantity']
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
'quantity' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['ship_date']
|
|
||||||
* @var \DateTime
|
|
||||||
*/
|
|
||||||
'ship_date' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['status'] Order Status
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'status' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['complete']
|
|
||||||
* @var bool
|
|
||||||
*/
|
|
||||||
'complete' => false,
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -187,17 +152,14 @@ class Order implements ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
|
||||||
|
$this->container['pet_id'] = isset($data['pet_id']) ? $data['pet_id'] : null;
|
||||||
if ($data != null) {
|
$this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
|
||||||
$this->container['id'] = $data['id'];
|
$this->container['ship_date'] = isset($data['ship_date']) ? $data['ship_date'] : null;
|
||||||
$this->container['pet_id'] = $data['pet_id'];
|
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||||
$this->container['quantity'] = $data['quantity'];
|
$this->container['complete'] = isset($data['complete']) ? $data['complete'] : false;
|
||||||
$this->container['ship_date'] = $data['ship_date'];
|
|
||||||
$this->container['status'] = $data['status'];
|
|
||||||
$this->container['complete'] = $data['complete'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets id
|
* Gets id
|
||||||
* @return int
|
* @return int
|
||||||
@@ -218,6 +180,7 @@ class Order implements ArrayAccess
|
|||||||
$this->container['id'] = $id;
|
$this->container['id'] = $id;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets pet_id
|
* Gets pet_id
|
||||||
* @return int
|
* @return int
|
||||||
@@ -238,6 +201,7 @@ class Order implements ArrayAccess
|
|||||||
$this->container['pet_id'] = $pet_id;
|
$this->container['pet_id'] = $pet_id;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets quantity
|
* Gets quantity
|
||||||
* @return int
|
* @return int
|
||||||
@@ -258,6 +222,7 @@ class Order implements ArrayAccess
|
|||||||
$this->container['quantity'] = $quantity;
|
$this->container['quantity'] = $quantity;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets ship_date
|
* Gets ship_date
|
||||||
* @return \DateTime
|
* @return \DateTime
|
||||||
@@ -278,6 +243,7 @@ class Order implements ArrayAccess
|
|||||||
$this->container['ship_date'] = $ship_date;
|
$this->container['ship_date'] = $ship_date;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets status
|
* Gets status
|
||||||
* @return string
|
* @return string
|
||||||
@@ -301,6 +267,7 @@ class Order implements ArrayAccess
|
|||||||
$this->container['status'] = $status;
|
$this->container['status'] = $status;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets complete
|
* Gets complete
|
||||||
* @return bool
|
* @return bool
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
namespace Swagger\Client\Model;
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
use \ArrayAccess;
|
use \ArrayAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pet Class Doc Comment
|
* Pet Class Doc Comment
|
||||||
*
|
*
|
||||||
@@ -64,7 +65,7 @@ class Pet implements ArrayAccess
|
|||||||
'tags' => '\Swagger\Client\Model\Tag[]',
|
'tags' => '\Swagger\Client\Model\Tag[]',
|
||||||
'status' => 'string'
|
'status' => 'string'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function swaggerTypes() {
|
static function swaggerTypes() {
|
||||||
return self::$swaggerTypes;
|
return self::$swaggerTypes;
|
||||||
}
|
}
|
||||||
@@ -81,7 +82,7 @@ class Pet implements ArrayAccess
|
|||||||
'tags' => 'tags',
|
'tags' => 'tags',
|
||||||
'status' => 'status'
|
'status' => 'status'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function attributeMap() {
|
static function attributeMap() {
|
||||||
return self::$attributeMap;
|
return self::$attributeMap;
|
||||||
}
|
}
|
||||||
@@ -98,7 +99,7 @@ class Pet implements ArrayAccess
|
|||||||
'tags' => 'setTags',
|
'tags' => 'setTags',
|
||||||
'status' => 'setStatus'
|
'status' => 'setStatus'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function setters() {
|
static function setters() {
|
||||||
return self::$setters;
|
return self::$setters;
|
||||||
}
|
}
|
||||||
@@ -143,43 +144,7 @@ class Pet implements ArrayAccess
|
|||||||
* Associative array for storing property values
|
* Associative array for storing property values
|
||||||
* @var mixed[]
|
* @var mixed[]
|
||||||
*/
|
*/
|
||||||
protected $container = array(
|
protected $container = array();
|
||||||
/**
|
|
||||||
* $container['id']
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
'id' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['category']
|
|
||||||
* @var \Swagger\Client\Model\Category
|
|
||||||
*/
|
|
||||||
'category' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['name']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'name' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['photo_urls']
|
|
||||||
* @var string[]
|
|
||||||
*/
|
|
||||||
'photo_urls' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['tags']
|
|
||||||
* @var \Swagger\Client\Model\Tag[]
|
|
||||||
*/
|
|
||||||
'tags' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['status'] pet status in the store
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'status' => null,
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -187,17 +152,14 @@ class Pet implements ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
|
||||||
|
$this->container['category'] = isset($data['category']) ? $data['category'] : null;
|
||||||
if ($data != null) {
|
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
|
||||||
$this->container['id'] = $data['id'];
|
$this->container['photo_urls'] = isset($data['photo_urls']) ? $data['photo_urls'] : null;
|
||||||
$this->container['category'] = $data['category'];
|
$this->container['tags'] = isset($data['tags']) ? $data['tags'] : null;
|
||||||
$this->container['name'] = $data['name'];
|
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||||
$this->container['photo_urls'] = $data['photo_urls'];
|
|
||||||
$this->container['tags'] = $data['tags'];
|
|
||||||
$this->container['status'] = $data['status'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets id
|
* Gets id
|
||||||
* @return int
|
* @return int
|
||||||
@@ -218,6 +180,7 @@ class Pet implements ArrayAccess
|
|||||||
$this->container['id'] = $id;
|
$this->container['id'] = $id;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets category
|
* Gets category
|
||||||
* @return \Swagger\Client\Model\Category
|
* @return \Swagger\Client\Model\Category
|
||||||
@@ -238,6 +201,7 @@ class Pet implements ArrayAccess
|
|||||||
$this->container['category'] = $category;
|
$this->container['category'] = $category;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets name
|
* Gets name
|
||||||
* @return string
|
* @return string
|
||||||
@@ -258,6 +222,7 @@ class Pet implements ArrayAccess
|
|||||||
$this->container['name'] = $name;
|
$this->container['name'] = $name;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets photo_urls
|
* Gets photo_urls
|
||||||
* @return string[]
|
* @return string[]
|
||||||
@@ -278,6 +243,7 @@ class Pet implements ArrayAccess
|
|||||||
$this->container['photo_urls'] = $photo_urls;
|
$this->container['photo_urls'] = $photo_urls;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets tags
|
* Gets tags
|
||||||
* @return \Swagger\Client\Model\Tag[]
|
* @return \Swagger\Client\Model\Tag[]
|
||||||
@@ -298,6 +264,7 @@ class Pet implements ArrayAccess
|
|||||||
$this->container['tags'] = $tags;
|
$this->container['tags'] = $tags;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets status
|
* Gets status
|
||||||
* @return string
|
* @return string
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
namespace Swagger\Client\Model;
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
use \ArrayAccess;
|
use \ArrayAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SpecialModelName Class Doc Comment
|
* SpecialModelName Class Doc Comment
|
||||||
*
|
*
|
||||||
@@ -59,7 +60,7 @@ class SpecialModelName implements ArrayAccess
|
|||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'special_property_name' => 'int'
|
'special_property_name' => 'int'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function swaggerTypes() {
|
static function swaggerTypes() {
|
||||||
return self::$swaggerTypes;
|
return self::$swaggerTypes;
|
||||||
}
|
}
|
||||||
@@ -71,7 +72,7 @@ class SpecialModelName implements ArrayAccess
|
|||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'special_property_name' => '$special[property.name]'
|
'special_property_name' => '$special[property.name]'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function attributeMap() {
|
static function attributeMap() {
|
||||||
return self::$attributeMap;
|
return self::$attributeMap;
|
||||||
}
|
}
|
||||||
@@ -83,7 +84,7 @@ class SpecialModelName implements ArrayAccess
|
|||||||
static $setters = array(
|
static $setters = array(
|
||||||
'special_property_name' => 'setSpecialPropertyName'
|
'special_property_name' => 'setSpecialPropertyName'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function setters() {
|
static function setters() {
|
||||||
return self::$setters;
|
return self::$setters;
|
||||||
}
|
}
|
||||||
@@ -108,13 +109,7 @@ class SpecialModelName implements ArrayAccess
|
|||||||
* Associative array for storing property values
|
* Associative array for storing property values
|
||||||
* @var mixed[]
|
* @var mixed[]
|
||||||
*/
|
*/
|
||||||
protected $container = array(
|
protected $container = array();
|
||||||
/**
|
|
||||||
* $container['special_property_name']
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
'special_property_name' => null,
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -122,12 +117,9 @@ class SpecialModelName implements ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
$this->container['special_property_name'] = isset($data['special_property_name']) ? $data['special_property_name'] : null;
|
||||||
|
|
||||||
if ($data != null) {
|
|
||||||
$this->container['special_property_name'] = $data['special_property_name'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets special_property_name
|
* Gets special_property_name
|
||||||
* @return int
|
* @return int
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
namespace Swagger\Client\Model;
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
use \ArrayAccess;
|
use \ArrayAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tag Class Doc Comment
|
* Tag Class Doc Comment
|
||||||
*
|
*
|
||||||
@@ -60,7 +61,7 @@ class Tag implements ArrayAccess
|
|||||||
'id' => 'int',
|
'id' => 'int',
|
||||||
'name' => 'string'
|
'name' => 'string'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function swaggerTypes() {
|
static function swaggerTypes() {
|
||||||
return self::$swaggerTypes;
|
return self::$swaggerTypes;
|
||||||
}
|
}
|
||||||
@@ -73,7 +74,7 @@ class Tag implements ArrayAccess
|
|||||||
'id' => 'id',
|
'id' => 'id',
|
||||||
'name' => 'name'
|
'name' => 'name'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function attributeMap() {
|
static function attributeMap() {
|
||||||
return self::$attributeMap;
|
return self::$attributeMap;
|
||||||
}
|
}
|
||||||
@@ -86,7 +87,7 @@ class Tag implements ArrayAccess
|
|||||||
'id' => 'setId',
|
'id' => 'setId',
|
||||||
'name' => 'setName'
|
'name' => 'setName'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function setters() {
|
static function setters() {
|
||||||
return self::$setters;
|
return self::$setters;
|
||||||
}
|
}
|
||||||
@@ -112,19 +113,7 @@ class Tag implements ArrayAccess
|
|||||||
* Associative array for storing property values
|
* Associative array for storing property values
|
||||||
* @var mixed[]
|
* @var mixed[]
|
||||||
*/
|
*/
|
||||||
protected $container = array(
|
protected $container = array();
|
||||||
/**
|
|
||||||
* $container['id']
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
'id' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['name']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'name' => null,
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -132,13 +121,10 @@ class Tag implements ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
|
||||||
|
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
|
||||||
if ($data != null) {
|
|
||||||
$this->container['id'] = $data['id'];
|
|
||||||
$this->container['name'] = $data['name'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets id
|
* Gets id
|
||||||
* @return int
|
* @return int
|
||||||
@@ -159,6 +145,7 @@ class Tag implements ArrayAccess
|
|||||||
$this->container['id'] = $id;
|
$this->container['id'] = $id;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets name
|
* Gets name
|
||||||
* @return string
|
* @return string
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
namespace Swagger\Client\Model;
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
use \ArrayAccess;
|
use \ArrayAccess;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User Class Doc Comment
|
* User Class Doc Comment
|
||||||
*
|
*
|
||||||
@@ -66,7 +67,7 @@ class User implements ArrayAccess
|
|||||||
'phone' => 'string',
|
'phone' => 'string',
|
||||||
'user_status' => 'int'
|
'user_status' => 'int'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function swaggerTypes() {
|
static function swaggerTypes() {
|
||||||
return self::$swaggerTypes;
|
return self::$swaggerTypes;
|
||||||
}
|
}
|
||||||
@@ -85,7 +86,7 @@ class User implements ArrayAccess
|
|||||||
'phone' => 'phone',
|
'phone' => 'phone',
|
||||||
'user_status' => 'userStatus'
|
'user_status' => 'userStatus'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function attributeMap() {
|
static function attributeMap() {
|
||||||
return self::$attributeMap;
|
return self::$attributeMap;
|
||||||
}
|
}
|
||||||
@@ -104,7 +105,7 @@ class User implements ArrayAccess
|
|||||||
'phone' => 'setPhone',
|
'phone' => 'setPhone',
|
||||||
'user_status' => 'setUserStatus'
|
'user_status' => 'setUserStatus'
|
||||||
);
|
);
|
||||||
|
|
||||||
static function setters() {
|
static function setters() {
|
||||||
return self::$setters;
|
return self::$setters;
|
||||||
}
|
}
|
||||||
@@ -136,55 +137,7 @@ class User implements ArrayAccess
|
|||||||
* Associative array for storing property values
|
* Associative array for storing property values
|
||||||
* @var mixed[]
|
* @var mixed[]
|
||||||
*/
|
*/
|
||||||
protected $container = array(
|
protected $container = array();
|
||||||
/**
|
|
||||||
* $container['id']
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
'id' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['username']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'username' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['first_name']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'first_name' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['last_name']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'last_name' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['email']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'email' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['password']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'password' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['phone']
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
'phone' => null,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* $container['user_status'] User Status
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
'user_status' => null,
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -192,19 +145,16 @@ class User implements ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
|
||||||
|
$this->container['username'] = isset($data['username']) ? $data['username'] : null;
|
||||||
if ($data != null) {
|
$this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null;
|
||||||
$this->container['id'] = $data['id'];
|
$this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null;
|
||||||
$this->container['username'] = $data['username'];
|
$this->container['email'] = isset($data['email']) ? $data['email'] : null;
|
||||||
$this->container['first_name'] = $data['first_name'];
|
$this->container['password'] = isset($data['password']) ? $data['password'] : null;
|
||||||
$this->container['last_name'] = $data['last_name'];
|
$this->container['phone'] = isset($data['phone']) ? $data['phone'] : null;
|
||||||
$this->container['email'] = $data['email'];
|
$this->container['user_status'] = isset($data['user_status']) ? $data['user_status'] : null;
|
||||||
$this->container['password'] = $data['password'];
|
|
||||||
$this->container['phone'] = $data['phone'];
|
|
||||||
$this->container['user_status'] = $data['user_status'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets id
|
* Gets id
|
||||||
* @return int
|
* @return int
|
||||||
@@ -225,6 +175,7 @@ class User implements ArrayAccess
|
|||||||
$this->container['id'] = $id;
|
$this->container['id'] = $id;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets username
|
* Gets username
|
||||||
* @return string
|
* @return string
|
||||||
@@ -245,6 +196,7 @@ class User implements ArrayAccess
|
|||||||
$this->container['username'] = $username;
|
$this->container['username'] = $username;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets first_name
|
* Gets first_name
|
||||||
* @return string
|
* @return string
|
||||||
@@ -265,6 +217,7 @@ class User implements ArrayAccess
|
|||||||
$this->container['first_name'] = $first_name;
|
$this->container['first_name'] = $first_name;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets last_name
|
* Gets last_name
|
||||||
* @return string
|
* @return string
|
||||||
@@ -285,6 +238,7 @@ class User implements ArrayAccess
|
|||||||
$this->container['last_name'] = $last_name;
|
$this->container['last_name'] = $last_name;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets email
|
* Gets email
|
||||||
* @return string
|
* @return string
|
||||||
@@ -305,6 +259,7 @@ class User implements ArrayAccess
|
|||||||
$this->container['email'] = $email;
|
$this->container['email'] = $email;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets password
|
* Gets password
|
||||||
* @return string
|
* @return string
|
||||||
@@ -325,6 +280,7 @@ class User implements ArrayAccess
|
|||||||
$this->container['password'] = $password;
|
$this->container['password'] = $password;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets phone
|
* Gets phone
|
||||||
* @return string
|
* @return string
|
||||||
@@ -345,6 +301,7 @@ class User implements ArrayAccess
|
|||||||
$this->container['phone'] = $phone;
|
$this->container['phone'] = $phone;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets user_status
|
* Gets user_status
|
||||||
* @return int
|
* @return int
|
||||||
|
|||||||
@@ -256,7 +256,7 @@ class ObjectSerializer
|
|||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
} elseif (in_array($class, array('integer', 'int', 'void', 'number', 'object', 'double', 'float', 'byte', 'DateTime', 'string', 'mixed', 'boolean', 'bool'))) {
|
} elseif (in_array($class, array('void', 'bool', 'string', 'double', 'byte', 'mixed', 'integer', 'float', 'int', 'DateTime', 'number', 'boolean', 'object'))) {
|
||||||
settype($data, $class);
|
settype($data, $class);
|
||||||
return $data;
|
return $data;
|
||||||
} elseif ($class === '\SplFileObject') {
|
} elseif ($class === '\SplFileObject') {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* InlineResponse200Test
|
* EnumClassTest
|
||||||
*
|
*
|
||||||
* PHP version 5
|
* PHP version 5
|
||||||
*
|
*
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
namespace Swagger\Client\Model;
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* InlineResponse200Test Class Doc Comment
|
* EnumClassTest Class Doc Comment
|
||||||
*
|
*
|
||||||
* @category Class
|
* @category Class
|
||||||
* @description
|
* @description
|
||||||
@@ -43,7 +43,7 @@ namespace Swagger\Client\Model;
|
|||||||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
|
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
|
||||||
* @link https://github.com/swagger-api/swagger-codegen
|
* @link https://github.com/swagger-api/swagger-codegen
|
||||||
*/
|
*/
|
||||||
class InlineResponse200Test extends \PHPUnit_Framework_TestCase
|
class EnumClassTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -61,9 +61,9 @@ class InlineResponse200Test extends \PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test InlineResponse200
|
* Test EnumClass
|
||||||
*/
|
*/
|
||||||
public function testInlineResponse200() {
|
public function testEnumClass() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* EnumTestTest
|
||||||
|
*
|
||||||
|
* 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 2016 SmartBear Software
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* 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.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen
|
||||||
|
* Please update the test case below to test the model.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Swagger\Client\Model;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* EnumTestTest 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 EnumTestTest extends \PHPUnit_Framework_TestCase
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setup before running each test case
|
||||||
|
*/
|
||||||
|
public static function setUpBeforeClass() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clean up after running each test case
|
||||||
|
*/
|
||||||
|
public static function tearDownAfterClass() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test EnumTest
|
||||||
|
*/
|
||||||
|
public function testEnumTest() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user