mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-29 12:10:54 +00:00
fix getter for allowableValues for php enum
This commit is contained in:
parent
800a858acb
commit
2c9e9ee425
@ -68,9 +68,9 @@ class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}implements ArrayA
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes where the key is the local name, and the value is the original name
|
* Array of attributes where the key is the local name, and the value is the original name
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
{{#vars}}'{{name}}' => '{{baseName}}'{{#hasMore}},
|
{{#vars}}'{{name}}' => '{{baseName}}'{{#hasMore}},
|
||||||
{{/hasMore}}{{/vars}}
|
{{/hasMore}}{{/vars}}
|
||||||
@ -81,9 +81,9 @@ class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}implements ArrayA
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to setter functions (for deserialization of responses)
|
* Array of attributes to setter functions (for deserialization of responses)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $setters = array(
|
static $setters = array(
|
||||||
{{#vars}}'{{name}}' => '{{setter}}'{{#hasMore}},
|
{{#vars}}'{{name}}' => '{{setter}}'{{#hasMore}},
|
||||||
{{/hasMore}}{{/vars}}
|
{{/hasMore}}{{/vars}}
|
||||||
@ -94,9 +94,9 @@ class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}implements ArrayA
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to getter functions (for serialization of requests)
|
* Array of attributes to getter functions (for serialization of requests)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $getters = array(
|
static $getters = array(
|
||||||
{{#vars}}'{{name}}' => '{{getter}}'{{#hasMore}},
|
{{#vars}}'{{name}}' => '{{getter}}'{{#hasMore}},
|
||||||
{{/hasMore}}{{/vars}}
|
{{/hasMore}}{{/vars}}
|
||||||
@ -109,24 +109,24 @@ class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}implements ArrayA
|
|||||||
{{#vars}}{{#isEnum}}{{#allowableValues}}{{#enumVars}}const {{datatypeWithEnum}}_{{{name}}} = "{{{value}}}";
|
{{#vars}}{{#isEnum}}{{#allowableValues}}{{#enumVars}}const {{datatypeWithEnum}}_{{{name}}} = "{{{value}}}";
|
||||||
{{/enumVars}}{{/allowableValues}}{{/isEnum}}{{/vars}}
|
{{/enumVars}}{{/allowableValues}}{{/isEnum}}{{/vars}}
|
||||||
|
|
||||||
{{#isEnum}}
|
{{#vars}}{{#isEnum}}
|
||||||
/**
|
/**
|
||||||
* Gets allowable values of the enum
|
* Gets allowable values of the enum
|
||||||
* @return string[]
|
* @return string[]
|
||||||
*/
|
*/
|
||||||
public function {{getter}}AllowableValues() {
|
public function {{getter}}AllowableValues() {
|
||||||
return [
|
return [
|
||||||
{{#allowableValues}}{{#values}}self::{{datatypeWithEnum}}_{{{this}}},{{^-last}}
|
{{#allowableValues}}{{#enumVars}}self::{{datatypeWithEnum}}_{{{name}}},{{^-last}}
|
||||||
{{/-last}}{{/values}}{{/allowableValues}}
|
{{/-last}}{{/enumVars}}{{/allowableValues}}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
{{/isEnum}}
|
{{/isEnum}}{{/vars}}
|
||||||
|
|
||||||
{{#vars}}
|
{{#vars}}
|
||||||
/**
|
/**
|
||||||
* ${{name}} {{#description}}{{{description}}}{{/description}}
|
* ${{name}} {{#description}}{{{description}}}{{/description}}
|
||||||
* @var {{datatype}}
|
* @var {{datatype}}
|
||||||
*/
|
*/
|
||||||
protected ${{name}}{{#defaultValue}} = {{{defaultValue}}}{{/defaultValue}};
|
protected ${{name}}{{#defaultValue}} = {{{defaultValue}}}{{/defaultValue}};
|
||||||
{{/vars}}
|
{{/vars}}
|
||||||
|
|
||||||
|
@ -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-04-02T19:03:06.710+08:00
|
- Build date: 2016-04-02T19:17:12.338+08:00
|
||||||
- Build package: class io.swagger.codegen.languages.PhpClientCodegen
|
- Build package: class io.swagger.codegen.languages.PhpClientCodegen
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
@ -47,9 +47,9 @@ use \ArrayAccess;
|
|||||||
class Animal implements ArrayAccess
|
class Animal implements ArrayAccess
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Array of property to type mappings. Used for (de)serialization
|
* Array of property to type mappings. Used for (de)serialization
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'class_name' => 'string'
|
'class_name' => 'string'
|
||||||
);
|
);
|
||||||
@ -59,9 +59,9 @@ class Animal implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes where the key is the local name, and the value is the original name
|
* Array of attributes where the key is the local name, and the value is the original name
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'class_name' => 'className'
|
'class_name' => 'className'
|
||||||
);
|
);
|
||||||
@ -71,9 +71,9 @@ class Animal implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to setter functions (for deserialization of responses)
|
* Array of attributes to setter functions (for deserialization of responses)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $setters = array(
|
static $setters = array(
|
||||||
'class_name' => 'setClassName'
|
'class_name' => 'setClassName'
|
||||||
);
|
);
|
||||||
@ -83,9 +83,9 @@ class Animal implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to getter functions (for serialization of requests)
|
* Array of attributes to getter functions (for serialization of requests)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $getters = array(
|
static $getters = array(
|
||||||
'class_name' => 'getClassName'
|
'class_name' => 'getClassName'
|
||||||
);
|
);
|
||||||
@ -100,9 +100,9 @@ class Animal implements ArrayAccess
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $class_name
|
* $class_name
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $class_name;
|
protected $class_name;
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,9 +47,9 @@ use \ArrayAccess;
|
|||||||
class Cat extends Animal implements ArrayAccess
|
class Cat extends Animal implements ArrayAccess
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Array of property to type mappings. Used for (de)serialization
|
* Array of property to type mappings. Used for (de)serialization
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'declawed' => 'bool'
|
'declawed' => 'bool'
|
||||||
);
|
);
|
||||||
@ -59,9 +59,9 @@ class Cat extends Animal implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes where the key is the local name, and the value is the original name
|
* Array of attributes where the key is the local name, and the value is the original name
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'declawed' => 'declawed'
|
'declawed' => 'declawed'
|
||||||
);
|
);
|
||||||
@ -71,9 +71,9 @@ class Cat extends Animal implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to setter functions (for deserialization of responses)
|
* Array of attributes to setter functions (for deserialization of responses)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $setters = array(
|
static $setters = array(
|
||||||
'declawed' => 'setDeclawed'
|
'declawed' => 'setDeclawed'
|
||||||
);
|
);
|
||||||
@ -83,9 +83,9 @@ class Cat extends Animal implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to getter functions (for serialization of requests)
|
* Array of attributes to getter functions (for serialization of requests)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $getters = array(
|
static $getters = array(
|
||||||
'declawed' => 'getDeclawed'
|
'declawed' => 'getDeclawed'
|
||||||
);
|
);
|
||||||
@ -100,9 +100,9 @@ class Cat extends Animal implements ArrayAccess
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $declawed
|
* $declawed
|
||||||
* @var bool
|
* @var bool
|
||||||
*/
|
*/
|
||||||
protected $declawed;
|
protected $declawed;
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,9 +47,9 @@ use \ArrayAccess;
|
|||||||
class Category implements ArrayAccess
|
class Category implements ArrayAccess
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Array of property to type mappings. Used for (de)serialization
|
* Array of property to type mappings. Used for (de)serialization
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'id' => 'int',
|
'id' => 'int',
|
||||||
'name' => 'string'
|
'name' => 'string'
|
||||||
@ -60,9 +60,9 @@ class Category implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes where the key is the local name, and the value is the original name
|
* Array of attributes where the key is the local name, and the value is the original name
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'id' => 'id',
|
'id' => 'id',
|
||||||
'name' => 'name'
|
'name' => 'name'
|
||||||
@ -73,9 +73,9 @@ class Category implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to setter functions (for deserialization of responses)
|
* Array of attributes to setter functions (for deserialization of responses)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $setters = array(
|
static $setters = array(
|
||||||
'id' => 'setId',
|
'id' => 'setId',
|
||||||
'name' => 'setName'
|
'name' => 'setName'
|
||||||
@ -86,9 +86,9 @@ class Category implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to getter functions (for serialization of requests)
|
* Array of attributes to getter functions (for serialization of requests)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $getters = array(
|
static $getters = array(
|
||||||
'id' => 'getId',
|
'id' => 'getId',
|
||||||
'name' => 'getName'
|
'name' => 'getName'
|
||||||
@ -104,15 +104,15 @@ class Category implements ArrayAccess
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $id
|
* $id
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $id;
|
protected $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $name
|
* $name
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $name;
|
protected $name;
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,9 +47,9 @@ use \ArrayAccess;
|
|||||||
class Dog extends Animal implements ArrayAccess
|
class Dog extends Animal implements ArrayAccess
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Array of property to type mappings. Used for (de)serialization
|
* Array of property to type mappings. Used for (de)serialization
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'breed' => 'string'
|
'breed' => 'string'
|
||||||
);
|
);
|
||||||
@ -59,9 +59,9 @@ class Dog extends Animal implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes where the key is the local name, and the value is the original name
|
* Array of attributes where the key is the local name, and the value is the original name
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'breed' => 'breed'
|
'breed' => 'breed'
|
||||||
);
|
);
|
||||||
@ -71,9 +71,9 @@ class Dog extends Animal implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to setter functions (for deserialization of responses)
|
* Array of attributes to setter functions (for deserialization of responses)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $setters = array(
|
static $setters = array(
|
||||||
'breed' => 'setBreed'
|
'breed' => 'setBreed'
|
||||||
);
|
);
|
||||||
@ -83,9 +83,9 @@ class Dog extends Animal implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to getter functions (for serialization of requests)
|
* Array of attributes to getter functions (for serialization of requests)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $getters = array(
|
static $getters = array(
|
||||||
'breed' => 'getBreed'
|
'breed' => 'getBreed'
|
||||||
);
|
);
|
||||||
@ -100,9 +100,9 @@ class Dog extends Animal implements ArrayAccess
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $breed
|
* $breed
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $breed;
|
protected $breed;
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,9 +47,9 @@ use \ArrayAccess;
|
|||||||
class InlineResponse200 implements ArrayAccess
|
class InlineResponse200 implements ArrayAccess
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Array of property to type mappings. Used for (de)serialization
|
* Array of property to type mappings. Used for (de)serialization
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'tags' => '\Swagger\Client\Model\Tag[]',
|
'tags' => '\Swagger\Client\Model\Tag[]',
|
||||||
'id' => 'int',
|
'id' => 'int',
|
||||||
@ -64,9 +64,9 @@ class InlineResponse200 implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes where the key is the local name, and the value is the original name
|
* Array of attributes where the key is the local name, and the value is the original name
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'tags' => 'tags',
|
'tags' => 'tags',
|
||||||
'id' => 'id',
|
'id' => 'id',
|
||||||
@ -81,9 +81,9 @@ class InlineResponse200 implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to setter functions (for deserialization of responses)
|
* Array of attributes to setter functions (for deserialization of responses)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $setters = array(
|
static $setters = array(
|
||||||
'tags' => 'setTags',
|
'tags' => 'setTags',
|
||||||
'id' => 'setId',
|
'id' => 'setId',
|
||||||
@ -98,9 +98,9 @@ class InlineResponse200 implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to getter functions (for serialization of requests)
|
* Array of attributes to getter functions (for serialization of requests)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $getters = array(
|
static $getters = array(
|
||||||
'tags' => 'getTags',
|
'tags' => 'getTags',
|
||||||
'id' => 'getId',
|
'id' => 'getId',
|
||||||
@ -120,42 +120,54 @@ class InlineResponse200 implements ArrayAccess
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets allowable values of the enum
|
||||||
|
* @return string[]
|
||||||
|
*/
|
||||||
|
public function getStatusAllowableValues() {
|
||||||
|
return [
|
||||||
|
self::STATUS_AVAILABLE,
|
||||||
|
self::STATUS_PENDING,
|
||||||
|
self::STATUS_SOLD,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $tags
|
* $tags
|
||||||
* @var \Swagger\Client\Model\Tag[]
|
* @var \Swagger\Client\Model\Tag[]
|
||||||
*/
|
*/
|
||||||
protected $tags;
|
protected $tags;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $id
|
* $id
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $id;
|
protected $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $category
|
* $category
|
||||||
* @var object
|
* @var object
|
||||||
*/
|
*/
|
||||||
protected $category;
|
protected $category;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $status pet status in the store
|
* $status pet status in the store
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $status;
|
protected $status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $name
|
* $name
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $name;
|
protected $name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $photo_urls
|
* $photo_urls
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
protected $photo_urls;
|
protected $photo_urls;
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,9 +47,9 @@ use \ArrayAccess;
|
|||||||
class Model200Response implements ArrayAccess
|
class Model200Response implements ArrayAccess
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Array of property to type mappings. Used for (de)serialization
|
* Array of property to type mappings. Used for (de)serialization
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'name' => 'int'
|
'name' => 'int'
|
||||||
);
|
);
|
||||||
@ -59,9 +59,9 @@ class Model200Response implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes where the key is the local name, and the value is the original name
|
* Array of attributes where the key is the local name, and the value is the original name
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'name' => 'name'
|
'name' => 'name'
|
||||||
);
|
);
|
||||||
@ -71,9 +71,9 @@ class Model200Response implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to setter functions (for deserialization of responses)
|
* Array of attributes to setter functions (for deserialization of responses)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $setters = array(
|
static $setters = array(
|
||||||
'name' => 'setName'
|
'name' => 'setName'
|
||||||
);
|
);
|
||||||
@ -83,9 +83,9 @@ class Model200Response implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to getter functions (for serialization of requests)
|
* Array of attributes to getter functions (for serialization of requests)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $getters = array(
|
static $getters = array(
|
||||||
'name' => 'getName'
|
'name' => 'getName'
|
||||||
);
|
);
|
||||||
@ -100,9 +100,9 @@ class Model200Response implements ArrayAccess
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $name
|
* $name
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $name;
|
protected $name;
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,9 +47,9 @@ use \ArrayAccess;
|
|||||||
class ModelReturn implements ArrayAccess
|
class ModelReturn implements ArrayAccess
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Array of property to type mappings. Used for (de)serialization
|
* Array of property to type mappings. Used for (de)serialization
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'return' => 'int'
|
'return' => 'int'
|
||||||
);
|
);
|
||||||
@ -59,9 +59,9 @@ class ModelReturn implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes where the key is the local name, and the value is the original name
|
* Array of attributes where the key is the local name, and the value is the original name
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'return' => 'return'
|
'return' => 'return'
|
||||||
);
|
);
|
||||||
@ -71,9 +71,9 @@ class ModelReturn implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to setter functions (for deserialization of responses)
|
* Array of attributes to setter functions (for deserialization of responses)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $setters = array(
|
static $setters = array(
|
||||||
'return' => 'setReturn'
|
'return' => 'setReturn'
|
||||||
);
|
);
|
||||||
@ -83,9 +83,9 @@ class ModelReturn implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to getter functions (for serialization of requests)
|
* Array of attributes to getter functions (for serialization of requests)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $getters = array(
|
static $getters = array(
|
||||||
'return' => 'getReturn'
|
'return' => 'getReturn'
|
||||||
);
|
);
|
||||||
@ -100,9 +100,9 @@ class ModelReturn implements ArrayAccess
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $return
|
* $return
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $return;
|
protected $return;
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,9 +47,9 @@ use \ArrayAccess;
|
|||||||
class Name implements ArrayAccess
|
class Name implements ArrayAccess
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Array of property to type mappings. Used for (de)serialization
|
* Array of property to type mappings. Used for (de)serialization
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'name' => 'int',
|
'name' => 'int',
|
||||||
'snake_case' => 'int'
|
'snake_case' => 'int'
|
||||||
@ -60,9 +60,9 @@ class Name implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes where the key is the local name, and the value is the original name
|
* Array of attributes where the key is the local name, and the value is the original name
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'name' => 'name',
|
'name' => 'name',
|
||||||
'snake_case' => 'snake_case'
|
'snake_case' => 'snake_case'
|
||||||
@ -73,9 +73,9 @@ class Name implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to setter functions (for deserialization of responses)
|
* Array of attributes to setter functions (for deserialization of responses)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $setters = array(
|
static $setters = array(
|
||||||
'name' => 'setName',
|
'name' => 'setName',
|
||||||
'snake_case' => 'setSnakeCase'
|
'snake_case' => 'setSnakeCase'
|
||||||
@ -86,9 +86,9 @@ class Name implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to getter functions (for serialization of requests)
|
* Array of attributes to getter functions (for serialization of requests)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $getters = array(
|
static $getters = array(
|
||||||
'name' => 'getName',
|
'name' => 'getName',
|
||||||
'snake_case' => 'getSnakeCase'
|
'snake_case' => 'getSnakeCase'
|
||||||
@ -104,15 +104,15 @@ class Name implements ArrayAccess
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $name
|
* $name
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $name;
|
protected $name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $snake_case
|
* $snake_case
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $snake_case;
|
protected $snake_case;
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,9 +47,9 @@ use \ArrayAccess;
|
|||||||
class Order implements ArrayAccess
|
class Order implements ArrayAccess
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Array of property to type mappings. Used for (de)serialization
|
* Array of property to type mappings. Used for (de)serialization
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'id' => 'int',
|
'id' => 'int',
|
||||||
'pet_id' => 'int',
|
'pet_id' => 'int',
|
||||||
@ -64,9 +64,9 @@ class Order implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes where the key is the local name, and the value is the original name
|
* Array of attributes where the key is the local name, and the value is the original name
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'id' => 'id',
|
'id' => 'id',
|
||||||
'pet_id' => 'petId',
|
'pet_id' => 'petId',
|
||||||
@ -81,9 +81,9 @@ class Order implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to setter functions (for deserialization of responses)
|
* Array of attributes to setter functions (for deserialization of responses)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $setters = array(
|
static $setters = array(
|
||||||
'id' => 'setId',
|
'id' => 'setId',
|
||||||
'pet_id' => 'setPetId',
|
'pet_id' => 'setPetId',
|
||||||
@ -98,9 +98,9 @@ class Order implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to getter functions (for serialization of requests)
|
* Array of attributes to getter functions (for serialization of requests)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $getters = array(
|
static $getters = array(
|
||||||
'id' => 'getId',
|
'id' => 'getId',
|
||||||
'pet_id' => 'getPetId',
|
'pet_id' => 'getPetId',
|
||||||
@ -120,42 +120,54 @@ class Order implements ArrayAccess
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets allowable values of the enum
|
||||||
|
* @return string[]
|
||||||
|
*/
|
||||||
|
public function getStatusAllowableValues() {
|
||||||
|
return [
|
||||||
|
self::STATUS_PLACED,
|
||||||
|
self::STATUS_APPROVED,
|
||||||
|
self::STATUS_DELIVERED,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $id
|
* $id
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $id;
|
protected $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $pet_id
|
* $pet_id
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $pet_id;
|
protected $pet_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $quantity
|
* $quantity
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $quantity;
|
protected $quantity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $ship_date
|
* $ship_date
|
||||||
* @var \DateTime
|
* @var \DateTime
|
||||||
*/
|
*/
|
||||||
protected $ship_date;
|
protected $ship_date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $status Order Status
|
* $status Order Status
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $status;
|
protected $status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $complete
|
* $complete
|
||||||
* @var bool
|
* @var bool
|
||||||
*/
|
*/
|
||||||
protected $complete;
|
protected $complete;
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,9 +47,9 @@ use \ArrayAccess;
|
|||||||
class Pet implements ArrayAccess
|
class Pet implements ArrayAccess
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Array of property to type mappings. Used for (de)serialization
|
* Array of property to type mappings. Used for (de)serialization
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'id' => 'int',
|
'id' => 'int',
|
||||||
'category' => '\Swagger\Client\Model\Category',
|
'category' => '\Swagger\Client\Model\Category',
|
||||||
@ -64,9 +64,9 @@ class Pet implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes where the key is the local name, and the value is the original name
|
* Array of attributes where the key is the local name, and the value is the original name
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'id' => 'id',
|
'id' => 'id',
|
||||||
'category' => 'category',
|
'category' => 'category',
|
||||||
@ -81,9 +81,9 @@ class Pet implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to setter functions (for deserialization of responses)
|
* Array of attributes to setter functions (for deserialization of responses)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $setters = array(
|
static $setters = array(
|
||||||
'id' => 'setId',
|
'id' => 'setId',
|
||||||
'category' => 'setCategory',
|
'category' => 'setCategory',
|
||||||
@ -98,9 +98,9 @@ class Pet implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to getter functions (for serialization of requests)
|
* Array of attributes to getter functions (for serialization of requests)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $getters = array(
|
static $getters = array(
|
||||||
'id' => 'getId',
|
'id' => 'getId',
|
||||||
'category' => 'getCategory',
|
'category' => 'getCategory',
|
||||||
@ -120,42 +120,54 @@ class Pet implements ArrayAccess
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets allowable values of the enum
|
||||||
|
* @return string[]
|
||||||
|
*/
|
||||||
|
public function getStatusAllowableValues() {
|
||||||
|
return [
|
||||||
|
self::STATUS_AVAILABLE,
|
||||||
|
self::STATUS_PENDING,
|
||||||
|
self::STATUS_SOLD,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $id
|
* $id
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $id;
|
protected $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $category
|
* $category
|
||||||
* @var \Swagger\Client\Model\Category
|
* @var \Swagger\Client\Model\Category
|
||||||
*/
|
*/
|
||||||
protected $category;
|
protected $category;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $name
|
* $name
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $name;
|
protected $name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $photo_urls
|
* $photo_urls
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
protected $photo_urls;
|
protected $photo_urls;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $tags
|
* $tags
|
||||||
* @var \Swagger\Client\Model\Tag[]
|
* @var \Swagger\Client\Model\Tag[]
|
||||||
*/
|
*/
|
||||||
protected $tags;
|
protected $tags;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $status pet status in the store
|
* $status pet status in the store
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $status;
|
protected $status;
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,9 +47,9 @@ use \ArrayAccess;
|
|||||||
class SpecialModelName implements ArrayAccess
|
class SpecialModelName implements ArrayAccess
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Array of property to type mappings. Used for (de)serialization
|
* Array of property to type mappings. Used for (de)serialization
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'special_property_name' => 'int'
|
'special_property_name' => 'int'
|
||||||
);
|
);
|
||||||
@ -59,9 +59,9 @@ class SpecialModelName implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes where the key is the local name, and the value is the original name
|
* Array of attributes where the key is the local name, and the value is the original name
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'special_property_name' => '$special[property.name]'
|
'special_property_name' => '$special[property.name]'
|
||||||
);
|
);
|
||||||
@ -71,9 +71,9 @@ class SpecialModelName implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to setter functions (for deserialization of responses)
|
* Array of attributes to setter functions (for deserialization of responses)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $setters = array(
|
static $setters = array(
|
||||||
'special_property_name' => 'setSpecialPropertyName'
|
'special_property_name' => 'setSpecialPropertyName'
|
||||||
);
|
);
|
||||||
@ -83,9 +83,9 @@ class SpecialModelName implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to getter functions (for serialization of requests)
|
* Array of attributes to getter functions (for serialization of requests)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $getters = array(
|
static $getters = array(
|
||||||
'special_property_name' => 'getSpecialPropertyName'
|
'special_property_name' => 'getSpecialPropertyName'
|
||||||
);
|
);
|
||||||
@ -100,9 +100,9 @@ class SpecialModelName implements ArrayAccess
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $special_property_name
|
* $special_property_name
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $special_property_name;
|
protected $special_property_name;
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,9 +47,9 @@ use \ArrayAccess;
|
|||||||
class Tag implements ArrayAccess
|
class Tag implements ArrayAccess
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Array of property to type mappings. Used for (de)serialization
|
* Array of property to type mappings. Used for (de)serialization
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'id' => 'int',
|
'id' => 'int',
|
||||||
'name' => 'string'
|
'name' => 'string'
|
||||||
@ -60,9 +60,9 @@ class Tag implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes where the key is the local name, and the value is the original name
|
* Array of attributes where the key is the local name, and the value is the original name
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'id' => 'id',
|
'id' => 'id',
|
||||||
'name' => 'name'
|
'name' => 'name'
|
||||||
@ -73,9 +73,9 @@ class Tag implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to setter functions (for deserialization of responses)
|
* Array of attributes to setter functions (for deserialization of responses)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $setters = array(
|
static $setters = array(
|
||||||
'id' => 'setId',
|
'id' => 'setId',
|
||||||
'name' => 'setName'
|
'name' => 'setName'
|
||||||
@ -86,9 +86,9 @@ class Tag implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to getter functions (for serialization of requests)
|
* Array of attributes to getter functions (for serialization of requests)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $getters = array(
|
static $getters = array(
|
||||||
'id' => 'getId',
|
'id' => 'getId',
|
||||||
'name' => 'getName'
|
'name' => 'getName'
|
||||||
@ -104,15 +104,15 @@ class Tag implements ArrayAccess
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $id
|
* $id
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $id;
|
protected $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $name
|
* $name
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $name;
|
protected $name;
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,9 +47,9 @@ use \ArrayAccess;
|
|||||||
class User implements ArrayAccess
|
class User implements ArrayAccess
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Array of property to type mappings. Used for (de)serialization
|
* Array of property to type mappings. Used for (de)serialization
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $swaggerTypes = array(
|
static $swaggerTypes = array(
|
||||||
'id' => 'int',
|
'id' => 'int',
|
||||||
'username' => 'string',
|
'username' => 'string',
|
||||||
@ -66,9 +66,9 @@ class User implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes where the key is the local name, and the value is the original name
|
* Array of attributes where the key is the local name, and the value is the original name
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $attributeMap = array(
|
static $attributeMap = array(
|
||||||
'id' => 'id',
|
'id' => 'id',
|
||||||
'username' => 'username',
|
'username' => 'username',
|
||||||
@ -85,9 +85,9 @@ class User implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to setter functions (for deserialization of responses)
|
* Array of attributes to setter functions (for deserialization of responses)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $setters = array(
|
static $setters = array(
|
||||||
'id' => 'setId',
|
'id' => 'setId',
|
||||||
'username' => 'setUsername',
|
'username' => 'setUsername',
|
||||||
@ -104,9 +104,9 @@ class User implements ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of attributes to getter functions (for serialization of requests)
|
* Array of attributes to getter functions (for serialization of requests)
|
||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
static $getters = array(
|
static $getters = array(
|
||||||
'id' => 'getId',
|
'id' => 'getId',
|
||||||
'username' => 'getUsername',
|
'username' => 'getUsername',
|
||||||
@ -128,51 +128,51 @@ class User implements ArrayAccess
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $id
|
* $id
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $id;
|
protected $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $username
|
* $username
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $username;
|
protected $username;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $first_name
|
* $first_name
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $first_name;
|
protected $first_name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $last_name
|
* $last_name
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $last_name;
|
protected $last_name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $email
|
* $email
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $email;
|
protected $email;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $password
|
* $password
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $password;
|
protected $password;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $phone
|
* $phone
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $phone;
|
protected $phone;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $user_status User Status
|
* $user_status User Status
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $user_status;
|
protected $user_status;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user