This commit is contained in:
wing328 2016-05-13 21:03:50 +08:00
commit 68d0e975f9
64 changed files with 1908 additions and 420 deletions

View File

@ -55,18 +55,21 @@ class ApiClient
/** /**
* Configuration * Configuration
*
* @var Configuration * @var Configuration
*/ */
protected $config; protected $config;
/** /**
* Object Serializer * Object Serializer
*
* @var ObjectSerializer * @var ObjectSerializer
*/ */
protected $serializer; protected $serializer;
/** /**
* Constructor of the class * Constructor of the class
*
* @param Configuration $config config for this ApiClient * @param Configuration $config config for this ApiClient
*/ */
public function __construct(\{{invokerPackage}}\Configuration $config = null) public function __construct(\{{invokerPackage}}\Configuration $config = null)
@ -81,6 +84,7 @@ class ApiClient
/** /**
* Get the config * Get the config
*
* @return Configuration * @return Configuration
*/ */
public function getConfig() public function getConfig()
@ -90,6 +94,7 @@ class ApiClient
/** /**
* Get the serializer * Get the serializer
*
* @return ObjectSerializer * @return ObjectSerializer
*/ */
public function getSerializer() public function getSerializer()
@ -99,7 +104,9 @@ class ApiClient
/** /**
* Get API key (with prefix if set) * Get API key (with prefix if set)
*
* @param string $apiKeyIdentifier name of apikey * @param string $apiKeyIdentifier name of apikey
*
* @return string API key with the prefix * @return string API key with the prefix
*/ */
public function getApiKeyWithPrefix($apiKeyIdentifier) public function getApiKeyWithPrefix($apiKeyIdentifier)
@ -122,12 +129,14 @@ class ApiClient
/** /**
* Make the HTTP call (Sync) * Make the HTTP call (Sync)
*
* @param string $resourcePath path to method endpoint * @param string $resourcePath path to method endpoint
* @param string $method method to call * @param string $method method to call
* @param array $queryParams parameters to be place in query URL * @param array $queryParams parameters to be place in query URL
* @param array $postData parameters to be placed in POST body * @param array $postData parameters to be placed in POST body
* @param array $headerParams parameters to be place in request header * @param array $headerParams parameters to be place in request header
* @param string $responseType expected response type of the endpoint * @param string $responseType expected response type of the endpoint
*
* @throws \{{invokerPackage}}\ApiException on a non 2xx response * @throws \{{invokerPackage}}\ApiException on a non 2xx response
* @return mixed * @return mixed
*/ */
@ -160,7 +169,7 @@ class ApiClient
if ($this->config->getCurlTimeout() != 0) { if ($this->config->getCurlTimeout() != 0) {
curl_setopt($curl, CURLOPT_TIMEOUT, $this->config->getCurlTimeout()); curl_setopt($curl, CURLOPT_TIMEOUT, $this->config->getCurlTimeout());
} }
// return the result on success, rather than just true // return the result on success, rather than just true
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
@ -171,7 +180,7 @@ class ApiClient
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
} }
if (! empty($queryParams)) { if (!empty($queryParams)) {
$url = ($url . '?' . http_build_query($queryParams)); $url = ($url . '?' . http_build_query($queryParams));
} }
@ -216,7 +225,7 @@ class ApiClient
// Make the request // Make the request
$response = curl_exec($curl); $response = curl_exec($curl);
$http_header_size = curl_getinfo($curl, CURLINFO_HEADER_SIZE); $http_header_size = curl_getinfo($curl, CURLINFO_HEADER_SIZE);
$http_header = $this->http_parse_headers(substr($response, 0, $http_header_size)); $http_header = $this->httpParseHeaders(substr($response, 0, $http_header_size));
$http_body = substr($response, $http_header_size); $http_body = substr($response, $http_header_size);
$response_info = curl_getinfo($curl); $response_info = curl_getinfo($curl);
@ -295,16 +304,16 @@ class ApiClient
* *
* @return string[] Array of HTTP response heaers * @return string[] Array of HTTP response heaers
*/ */
protected function http_parse_headers($raw_headers) protected function httpParseHeaders($raw_headers)
{ {
// ref/credit: http://php.net/manual/en/function.http-parse-headers.php#112986 // ref/credit: http://php.net/manual/en/function.http-parse-headers.php#112986
$headers = array(); $headers = array();
$key = ''; $key = '';
foreach(explode("\n", $raw_headers) as $h) foreach(explode("\n", $raw_headers) as $h)
{ {
$h = explode(':', $h, 2); $h = explode(':', $h, 2);
if (isset($h[1])) if (isset($h[1]))
{ {
if (!isset($headers[$h[0]])) if (!isset($headers[$h[0]]))
@ -317,18 +326,18 @@ class ApiClient
{ {
$headers[$h[0]] = array_merge(array($headers[$h[0]]), array(trim($h[1]))); $headers[$h[0]] = array_merge(array($headers[$h[0]]), array(trim($h[1])));
} }
$key = $h[0]; $key = $h[0];
} }
else else
{ {
if (substr($h[0], 0, 1) == "\t") if (substr($h[0], 0, 1) == "\t")
$headers[$key] .= "\r\n\t".trim($h[0]); $headers[$key] .= "\r\n\t".trim($h[0]);
elseif (!$key) elseif (!$key)
$headers[0] = trim($h[0]);trim($h[0]); $headers[0] = trim($h[0]);trim($h[0]);
} }
} }
return $headers; return $headers;
} }
} }

View File

@ -48,24 +48,28 @@ class ApiException extends Exception
/** /**
* The HTTP body of the server response either as Json or string. * The HTTP body of the server response either as Json or string.
*
* @var mixed * @var mixed
*/ */
protected $responseBody; protected $responseBody;
/** /**
* The HTTP header of the server response. * The HTTP header of the server response.
*
* @var string[] * @var string[]
*/ */
protected $responseHeaders; protected $responseHeaders;
/** /**
* The deserialized response object * The deserialized response object
*
* @var $responseObject; * @var $responseObject;
*/ */
protected $responseObject; protected $responseObject;
/** /**
* Constructor * Constructor
*
* @param string $message Error message * @param string $message Error message
* @param int $code HTTP status code * @param int $code HTTP status code
* @param string $responseHeaders HTTP response header * @param string $responseHeaders HTTP response header
@ -100,7 +104,9 @@ class ApiException extends Exception
/** /**
* Sets the deseralized response object (during deserialization) * Sets the deseralized response object (during deserialization)
*
* @param mixed $obj Deserialized response object * @param mixed $obj Deserialized response object
*
* @return void * @return void
*/ */
public function setResponseObject($obj) public function setResponseObject($obj)

View File

@ -1,6 +1,6 @@
<?php <?php
/** /**
* ObjectSerializer * ObjectSerializer
* *
* PHP version 5 * PHP version 5
* *
@ -37,7 +37,7 @@ namespace {{invokerPackage}};
* ObjectSerializer Class Doc Comment * ObjectSerializer Class Doc Comment
* *
* @category Class * @category Class
* @package {{invokerPackage}} * @package {{invokerPackage}}
* @author http://github.com/swagger-api/swagger-codegen * @author http://github.com/swagger-api/swagger-codegen
* @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
@ -79,7 +79,7 @@ class ObjectSerializer
/** /**
* Sanitize filename by removing path. * Sanitize filename by removing path.
* e.g. ../../sun.gif becomes sun.gif * e.g. ../../sun.gif becomes sun.gif
* *
* @param string $filename filename to be sanitized * @param string $filename filename to be sanitized
* *
@ -270,7 +270,7 @@ class ObjectSerializer
$byte_written = $deserialized->fwrite($data); $byte_written = $deserialized->fwrite($data);
error_log("[INFO] Written $byte_written byte to $filename. Please move the file to a proper folder or delete the temp file after processing.\n", 3, Configuration::getDefaultConfiguration()->getDebugFile()); error_log("[INFO] Written $byte_written byte to $filename. Please move the file to a proper folder or delete the temp file after processing.\n", 3, Configuration::getDefaultConfiguration()->getDebugFile());
return $deserialized; return $deserialized;
} else { } else {
// If a discriminator is defined and points to a valid subclass, use it. // If a discriminator is defined and points to a valid subclass, use it.
if (!empty($discriminator) && isset($data->{$discriminator}) && is_string($data->{$discriminator})) { if (!empty($discriminator) && isset($data->{$discriminator}) && is_string($data->{$discriminator})) {
@ -282,11 +282,11 @@ class ObjectSerializer
$instance = new $class(); $instance = new $class();
foreach ($instance::swaggerTypes() as $property => $type) { foreach ($instance::swaggerTypes() as $property => $type) {
$propertySetter = $instance::setters()[$property]; $propertySetter = $instance::setters()[$property];
if (!isset($propertySetter) || !isset($data->{$instance::attributeMap()[$property]})) { if (!isset($propertySetter) || !isset($data->{$instance::attributeMap()[$property]})) {
continue; continue;
} }
$propertyValue = $data->{$instance::attributeMap()[$property]}; $propertyValue = $data->{$instance::attributeMap()[$property]};
if (isset($propertyValue)) { if (isset($propertyValue)) {
$instance->$propertySetter(self::deserialize($propertyValue, $type, null, $discriminator)); $instance->$propertySetter(self::deserialize($propertyValue, $type, null, $discriminator));

View File

@ -46,7 +46,7 @@ Download the files and include `autoload.php`:
require_once('/path/to/{{packagePath}}/autoload.php'); require_once('/path/to/{{packagePath}}/autoload.php');
``` ```
## Tests ## Tests
To run the unit tests: To run the unit tests:
@ -108,7 +108,7 @@ Class | Method | HTTP request | Description
{{/authMethods}}{{#authMethods}}{{#last}} Authentication schemes defined for the API:{{/last}}{{/authMethods}} {{/authMethods}}{{#authMethods}}{{#last}} Authentication schemes defined for the API:{{/last}}{{/authMethods}}
{{#authMethods}}## {{{name}}} {{#authMethods}}## {{{name}}}
{{#isApiKey}}- **Type**: API key {{#isApiKey}}- **Type**: API key
- **API key parameter name**: {{{keyParamName}}} - **API key parameter name**: {{{keyParamName}}}
- **Location**: {{#isKeyInQuery}}URL query string{{/isKeyInQuery}}{{#isKeyInHeader}}HTTP header{{/isKeyInHeader}} - **Location**: {{#isKeyInQuery}}URL query string{{/isKeyInQuery}}{{#isKeyInHeader}}HTTP header{{/isKeyInHeader}}
{{/isApiKey}} {{/isApiKey}}

View File

@ -26,8 +26,8 @@
*/ */
/** /**
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen * https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually. * Do not edit the class manually.
*/ */
@ -52,12 +52,14 @@ use \{{invokerPackage}}\ObjectSerializer;
/** /**
* API Client * API Client
*
* @var \{{invokerPackage}}\ApiClient instance of the ApiClient * @var \{{invokerPackage}}\ApiClient instance of the ApiClient
*/ */
protected $apiClient; protected $apiClient;
/** /**
* Constructor * Constructor
*
* @param \{{invokerPackage}}\ApiClient|null $apiClient The api client to use * @param \{{invokerPackage}}\ApiClient|null $apiClient The api client to use
*/ */
function __construct(\{{invokerPackage}}\ApiClient $apiClient = null) function __construct(\{{invokerPackage}}\ApiClient $apiClient = null)
@ -66,22 +68,25 @@ use \{{invokerPackage}}\ObjectSerializer;
$apiClient = new ApiClient(); $apiClient = new ApiClient();
$apiClient->getConfig()->setHost('{{basePath}}'); $apiClient->getConfig()->setHost('{{basePath}}');
} }
$this->apiClient = $apiClient; $this->apiClient = $apiClient;
} }
/** /**
* Get API client * Get API client
*
* @return \{{invokerPackage}}\ApiClient get the API client * @return \{{invokerPackage}}\ApiClient get the API client
*/ */
public function getApiClient() public function getApiClient()
{ {
return $this->apiClient; return $this->apiClient;
} }
/** /**
* Set the API client * Set the API client
*
* @param \{{invokerPackage}}\ApiClient $apiClient set the API client * @param \{{invokerPackage}}\ApiClient $apiClient set the API client
*
* @return {{classname}} * @return {{classname}}
*/ */
public function setApiClient(\{{invokerPackage}}\ApiClient $apiClient) public function setApiClient(\{{invokerPackage}}\ApiClient $apiClient)
@ -89,31 +94,33 @@ use \{{invokerPackage}}\ObjectSerializer;
$this->apiClient = $apiClient; $this->apiClient = $apiClient;
return $this; return $this;
} }
{{#operation}} {{#operation}}
/** /**
* {{{operationId}}} * Operation {{{operationId}}}
* *
* {{{summary}}} * {{{summary}}}
* *
{{#allParams}} * @param {{dataType}} ${{paramName}} {{description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}} {{#allParams}} * @param {{dataType}} ${{paramName}} {{description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
{{/allParams}} * @return {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{/allParams}} *
* @return {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}
* @throws \{{invokerPackage}}\ApiException on non-2xx response * @throws \{{invokerPackage}}\ApiException on non-2xx response
*/ */
public function {{operationId}}({{#allParams}}${{paramName}}{{^required}} = null{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) public function {{operationId}}({{#allParams}}${{paramName}}{{^required}} = null{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
{ {
list($response) = $this->{{operationId}}WithHttpInfo ({{#allParams}}${{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}); list($response) = $this->{{operationId}}WithHttpInfo({{#allParams}}${{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
return $response; return $response;
} }
/** /**
* {{{operationId}}}WithHttpInfo * Operation {{{operationId}}}WithHttpInfo
* *
* {{{summary}}} * {{{summary}}}
* *
{{#allParams}} * @param {{dataType}} ${{paramName}} {{description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}} {{#allParams}} * @param {{dataType}} ${{paramName}} {{description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
{{/allParams}} * @return Array of {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}null{{/returnType}}, HTTP status code, HTTP response headers (array of strings) {{/allParams}} *
* @return Array of {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}null{{/returnType}}, HTTP status code, HTTP response headers (array of strings)
* @throws \{{invokerPackage}}\ApiException on non-2xx response * @throws \{{invokerPackage}}\ApiException on non-2xx response
*/ */
public function {{operationId}}WithHttpInfo({{#allParams}}${{paramName}}{{^required}} = null{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) public function {{operationId}}WithHttpInfo({{#allParams}}${{paramName}}{{^required}} = null{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
@ -153,7 +160,7 @@ use \{{invokerPackage}}\ObjectSerializer;
{{/hasValidation}} {{/hasValidation}}
{{/allParams}} {{/allParams}}
// parse inputs // parse inputs
$resourcePath = "{{path}}"; $resourcePath = "{{path}}";
$httpBody = ''; $httpBody = '';
@ -165,7 +172,7 @@ use \{{invokerPackage}}\ObjectSerializer;
$headerParams['Accept'] = $_header_accept; $headerParams['Accept'] = $_header_accept;
} }
$headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(array({{#consumes}}'{{mediaType}}'{{#hasMore}},{{/hasMore}}{{/consumes}})); $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(array({{#consumes}}'{{mediaType}}'{{#hasMore}},{{/hasMore}}{{/consumes}}));
{{#queryParams}}// query params {{#queryParams}}// query params
{{#collectionFormat}} {{#collectionFormat}}
if (is_array(${{paramName}})) { if (is_array(${{paramName}})) {
@ -220,7 +227,7 @@ use \{{invokerPackage}}\ObjectSerializer;
if (isset(${{paramName}})) { if (isset(${{paramName}})) {
$_tempBody = ${{paramName}}; $_tempBody = ${{paramName}};
}{{/bodyParams}} }{{/bodyParams}}
// for model (json/xml) // for model (json/xml)
if (isset($_tempBody)) { if (isset($_tempBody)) {
$httpBody = $_tempBody; // $_tempBody is the method argument, if present $httpBody = $_tempBody; // $_tempBody is the method argument, if present
@ -264,7 +271,7 @@ use \{{invokerPackage}}\ObjectSerializer;
$e->setResponseObject($data); $e->setResponseObject($data);
break;{{/dataType}}{{/responses}} break;{{/dataType}}{{/responses}}
} }
throw $e; throw $e;
} }
} }

View File

@ -17,7 +17,7 @@ Method | HTTP request | Description
{{{notes}}}{{/notes}} {{{notes}}}{{/notes}}
### Example ### Example
```php ```php
<?php <?php
require_once(__DIR__ . '/vendor/autoload.php'); require_once(__DIR__ . '/vendor/autoload.php');
@ -37,7 +37,7 @@ $api_instance = new {{invokerPackage}}\Api\{{classname}}();
{{#allParams}}${{paramName}} = {{{example}}}; // {{{dataType}}} | {{{description}}} {{#allParams}}${{paramName}} = {{{example}}}; // {{{dataType}}} | {{{description}}}
{{/allParams}} {{/allParams}}
try { try {
{{#returnType}}$result = {{/returnType}}$api_instance->{{{operationId}}}({{#allParams}}${{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});{{#returnType}} {{#returnType}}$result = {{/returnType}}$api_instance->{{{operationId}}}({{#allParams}}${{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});{{#returnType}}
print_r($result);{{/returnType}} print_r($result);{{/returnType}}
} catch (Exception $e) { } catch (Exception $e) {

View File

@ -26,8 +26,8 @@
*/ */
/** /**
* NOTE: This class is auto generated by the swagger code generator program. * NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen * https://github.com/swagger-api/swagger-codegen
* Please update the test case below to test the endpoint. * Please update the test case below to test the endpoint.
*/ */
@ -53,14 +53,16 @@ use \{{invokerPackage}}\ObjectSerializer;
/** /**
* Setup before running each test case * Setup before running each test case
*/ */
public static function setUpBeforeClass() { public static function setUpBeforeClass()
{
} }
/** /**
* Clean up after running each test case * Clean up after running each test case
*/ */
public static function tearDownAfterClass() { public static function tearDownAfterClass()
{
} }
@ -71,7 +73,8 @@ use \{{invokerPackage}}\ObjectSerializer;
* {{{summary}}} * {{{summary}}}
* *
*/ */
public function test_{{operationId}}() { public function test_{{operationId}}()
{
} }
{{/operation}} {{/operation}}

View File

@ -1,14 +1,15 @@
<?php <?php
/** /**
* An example of a project-specific implementation. * An example of a project-specific implementation.
* *
* After registering this autoload function with SPL, the following line * After registering this autoload function with SPL, the following line
* would cause the function to attempt to load the \{{invokerPackage}}\Baz\Qux class * would cause the function to attempt to load the \{{invokerPackage}}\Baz\Qux class
* from /path/to/project/{{srcBasePath}}/Baz/Qux.php: * from /path/to/project/{{srcBasePath}}/Baz/Qux.php:
* *
* new \{{invokerPackage}}\Baz\Qux; * new \{{invokerPackage}}\Baz\Qux;
* *
* @param string $class The fully-qualified class name. * @param string $class The fully-qualified class name.
*
* @return void * @return void
*/ */
spl_autoload_register(function ($class) { spl_autoload_register(function ($class) {

View File

@ -28,7 +28,7 @@ git init
# Adds the files in the local repository and stages them for commit. # Adds the files in the local repository and stages them for commit.
git add . git add .
# Commits the tracked changes and prepares them to be pushed to a remote repository. # Commits the tracked changes and prepares them to be pushed to a remote repository.
git commit -m "$release_note" git commit -m "$release_note"
# Sets the new remote # Sets the new remote

View File

@ -56,7 +56,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}imple
static $swaggerModelName = '{{name}}'; static $swaggerModelName = '{{name}}';
/** /**
* 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(
@ -68,7 +68,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}imple
return self::$swaggerTypes{{#parentSchema}} + parent::swaggerTypes(){{/parentSchema}}; return self::$swaggerTypes{{#parentSchema}} + parent::swaggerTypes(){{/parentSchema}};
} }
/** /**
* 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[]
*/ */
@ -102,8 +102,9 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}imple
{{#vars}}'{{name}}' => '{{getter}}'{{#hasMore}}, {{#vars}}'{{name}}' => '{{getter}}'{{#hasMore}},
{{/hasMore}}{{/vars}} {{/hasMore}}{{/vars}}
); );
static function getters() { static function getters()
{
return {{#parentSchema}}parent::getters() + {{/parentSchema}}self::$getters; return {{#parentSchema}}parent::getters() + {{/parentSchema}}self::$getters;
} }
@ -115,7 +116,8 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}imple
* 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}}{{#enumVars}}self::{{datatypeWithEnum}}_{{{name}}},{{^-last}} {{#allowableValues}}{{#enumVars}}self::{{datatypeWithEnum}}_{{{name}}},{{^-last}}
{{/-last}}{{/enumVars}}{{/allowableValues}} {{/-last}}{{/enumVars}}{{/allowableValues}}
@ -152,48 +154,48 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}imple
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function listInvalidProperties()
{ {
$invalid_properties = array(); $invalid_properties = array();
{{#vars}} {{#vars}}
{{#required}} {{#required}}
if ($this->container['{{name}}'] === null) { if ($this->container['{{name}}'] === null) {
$invalid_properties[] = "'${{name}}' can't be null"; $invalid_properties[] = "'{{name}}' can't be null";
} }
{{/required}} {{/required}}
{{#isEnum}} {{#isEnum}}
$allowed_values = array({{#allowableValues}}{{#values}}"{{{this}}}"{{^-last}}, {{/-last}}{{/values}}{{/allowableValues}}); $allowed_values = array({{#allowableValues}}{{#values}}"{{{this}}}"{{^-last}}, {{/-last}}{{/values}}{{/allowableValues}});
if (!in_array($this->container['{{name}}'], $allowed_values)) { if (!in_array($this->container['{{name}}'], $allowed_values)) {
$invalid_properties[] = "invalid value for '${{name}}', must be one of #{allowed_values}."; $invalid_properties[] = "invalid value for '{{name}}', must be one of #{allowed_values}.";
} }
{{/isEnum}} {{/isEnum}}
{{#hasValidation}} {{#hasValidation}}
{{#maxLength}} {{#maxLength}}
if (strlen($this->container['{{name}}']) > {{maxLength}}) { if (strlen($this->container['{{name}}']) > {{maxLength}}) {
$invalid_properties[] = "invalid value for '${{name}}', the character length must be smaller than or equal to {{{maxLength}}}."; $invalid_properties[] = "invalid value for '{{name}}', the character length must be smaller than or equal to {{{maxLength}}}.";
} }
{{/maxLength}} {{/maxLength}}
{{#minLength}} {{#minLength}}
if (strlen($this->container['{{name}}']) < {{minLength}}) { if (strlen($this->container['{{name}}']) < {{minLength}}) {
$invalid_properties[] = "invalid value for '${{name}}', the character length must be bigger than or equal to {{{minLength}}}."; $invalid_properties[] = "invalid value for '{{name}}', the character length must be bigger than or equal to {{{minLength}}}.";
} }
{{/minLength}} {{/minLength}}
{{#maximum}} {{#maximum}}
if ($this->container['{{name}}'] > {{maximum}}) { if ($this->container['{{name}}'] > {{maximum}}) {
$invalid_properties[] = "invalid value for '${{name}}', must be smaller than or equal to {{maximum}}."; $invalid_properties[] = "invalid value for '{{name}}', must be smaller than or equal to {{maximum}}.";
} }
{{/maximum}} {{/maximum}}
{{#minimum}} {{#minimum}}
if ($this->container['{{name}}'] < {{minimum}}) { if ($this->container['{{name}}'] < {{minimum}}) {
$invalid_properties[] = "invalid value for '${{name}}', must be bigger than or equal to {{minimum}}."; $invalid_properties[] = "invalid value for '{{name}}', must be bigger than or equal to {{minimum}}.";
} }
{{/minimum}} {{/minimum}}
{{#pattern}} {{#pattern}}
if (!preg_match("{{pattern}}", $this->container['{{name}}'])) { if (!preg_match("{{pattern}}", $this->container['{{name}}'])) {
$invalid_properties[] = "invalid value for '${{name}}', must be conform to the pattern {{pattern}}."; $invalid_properties[] = "invalid value for '{{name}}', must be conform to the pattern {{pattern}}.";
} }
{{/pattern}} {{/pattern}}
{{/hasValidation}} {{/hasValidation}}
@ -204,8 +206,8 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}imple
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -309,7 +311,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}imple
{{/vars}} {{/vars}}
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -319,17 +321,17 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}imple
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -341,17 +343,17 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}imple
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -7,7 +7,8 @@ class {{classname}} {
* 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}}{{#enumVars}}self::{{datatypeWithEnum}}_{{{name}}},{{^-last}} {{#allowableValues}}{{#enumVars}}self::{{datatypeWithEnum}}_{{{name}}},{{^-last}}
{{/-last}}{{/enumVars}}{{/allowableValues}} {{/-last}}{{/enumVars}}{{/allowableValues}}

View File

@ -1,19 +1,20 @@
class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}implements ArrayAccess class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}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(
{{#vars}}'{{name}}' => '{{{datatype}}}'{{#hasMore}}, {{#vars}}'{{name}}' => '{{{datatype}}}'{{#hasMore}},
{{/hasMore}}{{/vars}} {{/hasMore}}{{/vars}}
); );
static function swaggerTypes() { static function swaggerTypes()
{
return self::$swaggerTypes{{#parent}} + parent::swaggerTypes(){{/parent}}; return self::$swaggerTypes{{#parent}} + parent::swaggerTypes(){{/parent}};
} }
/** /**
* 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[]
*/ */
@ -21,8 +22,9 @@ class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}implements ArrayA
{{#vars}}'{{name}}' => '{{baseName}}'{{#hasMore}}, {{#vars}}'{{name}}' => '{{baseName}}'{{#hasMore}},
{{/hasMore}}{{/vars}} {{/hasMore}}{{/vars}}
); );
static function attributeMap() { static function attributeMap()
{
return {{#parent}}parent::attributeMap() + {{/parent}}self::$attributeMap; return {{#parent}}parent::attributeMap() + {{/parent}}self::$attributeMap;
} }
@ -34,8 +36,9 @@ class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}implements ArrayA
{{#vars}}'{{name}}' => '{{setter}}'{{#hasMore}}, {{#vars}}'{{name}}' => '{{setter}}'{{#hasMore}},
{{/hasMore}}{{/vars}} {{/hasMore}}{{/vars}}
); );
static function setters() { static function setters()
{
return {{#parent}}parent::setters() + {{/parent}}self::$setters; return {{#parent}}parent::setters() + {{/parent}}self::$setters;
} }
@ -47,8 +50,9 @@ class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}implements ArrayA
{{#vars}}'{{name}}' => '{{getter}}'{{#hasMore}}, {{#vars}}'{{name}}' => '{{getter}}'{{#hasMore}},
{{/hasMore}}{{/vars}} {{/hasMore}}{{/vars}}
); );
static function getters() { static function getters()
{
return {{#parent}}parent::getters() + {{/parent}}self::$getters; return {{#parent}}parent::getters() + {{/parent}}self::$getters;
} }
@ -60,7 +64,8 @@ class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}implements ArrayA
* 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}}{{#enumVars}}self::{{datatypeWithEnum}}_{{{name}}},{{^-last}} {{#allowableValues}}{{#enumVars}}self::{{datatypeWithEnum}}_{{{name}}},{{^-last}}
{{/-last}}{{/enumVars}}{{/allowableValues}} {{/-last}}{{/enumVars}}{{/allowableValues}}
@ -115,7 +120,7 @@ class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}implements ArrayA
{{/vars}} {{/vars}}
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -125,17 +130,17 @@ class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}implements ArrayA
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return $this->$offset; return $this->$offset;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -143,17 +148,17 @@ class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}implements ArrayA
{ {
$this->$offset = $value; $this->$offset = $value;
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->$offset); unset($this->$offset);
} }
/** /**
* Gets the string presentation of the object. * Gets the string presentation of the object.
* @return string * @return string

View File

@ -51,21 +51,24 @@ class {{classname}}Test extends \PHPUnit_Framework_TestCase
/** /**
* Setup before running each test case * Setup before running each test case
*/ */
public static function setUpBeforeClass() { public static function setUpBeforeClass()
{
} }
/** /**
* Clean up after running each test case * Clean up after running each test case
*/ */
public static function tearDownAfterClass() { public static function tearDownAfterClass()
{
} }
/** /**
* Test {{classname}} * Test {{classname}}
*/ */
public function test{{classname}}() { public function test{{classname}}()
{
} }

View File

@ -0,0 +1,11 @@
# Animal
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**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)

View File

@ -0,0 +1,9 @@
# AnimalFarm
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,12 @@
# ApiResponse
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**code** | **int** | | [optional]
**type** | **string** | | [optional]
**message** | **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)

View File

@ -0,0 +1,10 @@
# Cat
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**declawed** | **bool** | | [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)

View File

@ -0,0 +1,11 @@
# Category
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | | [optional]
**name** | **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)

View File

@ -0,0 +1,10 @@
# Dog
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**breed** | **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)

View File

@ -0,0 +1,9 @@
# EnumClass
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -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)

View File

@ -0,0 +1,22 @@
# FormatTest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**integer** | **int** | | [optional]
**int32** | **int** | | [optional]
**int64** | **int** | | [optional]
**number** | **float** | |
**float** | **float** | | [optional]
**double** | **double** | | [optional]
**string** | **string** | | [optional]
**byte** | **string** | |
**binary** | **string** | | [optional]
**date** | [**\DateTime**](Date.md) | |
**date_time** | [**\DateTime**](\DateTime.md) | | [optional]
**uuid** | [**UUID**](UUID.md) | | [optional]
**password** | **string** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,10 @@
# Model200Response
## Properties
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)

View File

@ -0,0 +1,10 @@
# ModelReturn
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**return** | **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)

View File

@ -0,0 +1,13 @@
# Name
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **int** | |
**snake_case** | **int** | | [optional]
**property** | **string** | | [optional]
**_123_number** | **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)

View File

@ -0,0 +1,15 @@
# Order
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | | [optional]
**pet_id** | **int** | | [optional]
**quantity** | **int** | | [optional]
**ship_date** | [**\DateTime**](\DateTime.md) | | [optional]
**status** | **string** | Order Status | [optional]
**complete** | **bool** | | [optional] [default to false]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,15 @@
# Pet
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | | [optional]
**category** | [**\Swagger\Client\Model\Category**](Category.md) | | [optional]
**name** | **string** | |
**photo_urls** | **string[]** | |
**tags** | [**\Swagger\Client\Model\Tag[]**](Tag.md) | | [optional]
**status** | **string** | pet status in the store | [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)

View File

@ -0,0 +1,10 @@
# SpecialModelName
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**special_property_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)

View File

@ -0,0 +1,11 @@
# Tag
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | | [optional]
**name** | **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)

View File

@ -0,0 +1,17 @@
# User
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | | [optional]
**username** | **string** | | [optional]
**first_name** | **string** | | [optional]
**last_name** | **string** | | [optional]
**email** | **string** | | [optional]
**password** | **string** | | [optional]
**phone** | **string** | | [optional]
**user_status** | **int** | User Status | [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)

View File

@ -54,7 +54,7 @@ class Animal implements ArrayAccess
static $swaggerModelName = 'Animal'; static $swaggerModelName = 'Animal';
/** /**
* 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(
@ -66,7 +66,7 @@ class Animal implements ArrayAccess
return self::$swaggerTypes; return self::$swaggerTypes;
} }
/** /**
* 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[]
*/ */
@ -100,8 +100,9 @@ class Animal implements ArrayAccess
'class_name' => 'getClassName', 'class_name' => 'getClassName',
'color' => 'getColor' 'color' => 'getColor'
); );
static function getters() { static function getters()
{
return self::$getters; return self::$getters;
} }
@ -131,14 +132,14 @@ class Animal implements ArrayAccess
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function listInvalidProperties()
{ {
$invalid_properties = array(); $invalid_properties = array();
if ($this->container['class_name'] === null) { if ($this->container['class_name'] === null) {
$invalid_properties[] = "'$class_name' can't be null"; $invalid_properties[] = "'class_name' can't be null";
} }
return $invalid_properties; return $invalid_properties;
} }
@ -146,8 +147,8 @@ class Animal implements ArrayAccess
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -201,7 +202,7 @@ class Animal implements ArrayAccess
} }
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -211,17 +212,17 @@ class Animal implements ArrayAccess
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -233,17 +234,17 @@ class Animal implements ArrayAccess
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -54,7 +54,7 @@ class AnimalFarm implements ArrayAccess
static $swaggerModelName = 'AnimalFarm'; static $swaggerModelName = 'AnimalFarm';
/** /**
* 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(
@ -65,7 +65,7 @@ class AnimalFarm implements ArrayAccess
return self::$swaggerTypes; return self::$swaggerTypes;
} }
/** /**
* 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[]
*/ */
@ -96,8 +96,9 @@ class AnimalFarm implements ArrayAccess
static $getters = array( static $getters = array(
); );
static function getters() { static function getters()
{
return self::$getters; return self::$getters;
} }
@ -121,7 +122,7 @@ class AnimalFarm implements ArrayAccess
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function list_invalid_properties()
@ -133,8 +134,8 @@ class AnimalFarm implements ArrayAccess
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -143,7 +144,7 @@ class AnimalFarm implements ArrayAccess
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -153,17 +154,17 @@ class AnimalFarm implements ArrayAccess
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -175,17 +176,17 @@ class AnimalFarm implements ArrayAccess
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -54,7 +54,7 @@ class ApiResponse implements ArrayAccess
static $swaggerModelName = 'ApiResponse'; static $swaggerModelName = 'ApiResponse';
/** /**
* 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(
@ -67,7 +67,7 @@ class ApiResponse implements ArrayAccess
return self::$swaggerTypes; return self::$swaggerTypes;
} }
/** /**
* 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[]
*/ */
@ -104,8 +104,9 @@ class ApiResponse implements ArrayAccess
'type' => 'getType', 'type' => 'getType',
'message' => 'getMessage' 'message' => 'getMessage'
); );
static function getters() { static function getters()
{
return self::$getters; return self::$getters;
} }
@ -132,10 +133,10 @@ class ApiResponse implements ArrayAccess
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function listInvalidProperties()
{ {
$invalid_properties = array(); $invalid_properties = array();
return $invalid_properties; return $invalid_properties;
@ -144,8 +145,8 @@ class ApiResponse implements ArrayAccess
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -217,7 +218,7 @@ class ApiResponse implements ArrayAccess
} }
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -227,17 +228,17 @@ class ApiResponse implements ArrayAccess
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -249,17 +250,17 @@ class ApiResponse implements ArrayAccess
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -54,7 +54,7 @@ class Cat extends Animal implements ArrayAccess
static $swaggerModelName = 'Cat'; static $swaggerModelName = 'Cat';
/** /**
* 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(
@ -65,7 +65,7 @@ class Cat extends Animal implements ArrayAccess
return self::$swaggerTypes + parent::swaggerTypes(); return self::$swaggerTypes + parent::swaggerTypes();
} }
/** /**
* 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[]
*/ */
@ -96,8 +96,9 @@ class Cat extends Animal implements ArrayAccess
static $getters = array( static $getters = array(
'declawed' => 'getDeclawed' 'declawed' => 'getDeclawed'
); );
static function getters() { static function getters()
{
return parent::getters() + self::$getters; return parent::getters() + self::$getters;
} }
@ -124,10 +125,10 @@ class Cat extends Animal implements ArrayAccess
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function listInvalidProperties()
{ {
$invalid_properties = array(); $invalid_properties = array();
return $invalid_properties; return $invalid_properties;
@ -136,8 +137,8 @@ class Cat extends Animal implements ArrayAccess
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -167,7 +168,7 @@ class Cat extends Animal implements ArrayAccess
} }
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -177,17 +178,17 @@ class Cat extends Animal implements ArrayAccess
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -199,17 +200,17 @@ class Cat extends Animal implements ArrayAccess
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -54,7 +54,7 @@ class Category implements ArrayAccess
static $swaggerModelName = 'Category'; static $swaggerModelName = 'Category';
/** /**
* 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(
@ -66,7 +66,7 @@ class Category implements ArrayAccess
return self::$swaggerTypes; return self::$swaggerTypes;
} }
/** /**
* 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[]
*/ */
@ -100,8 +100,9 @@ class Category implements ArrayAccess
'id' => 'getId', 'id' => 'getId',
'name' => 'getName' 'name' => 'getName'
); );
static function getters() { static function getters()
{
return self::$getters; return self::$getters;
} }
@ -127,10 +128,10 @@ class Category implements ArrayAccess
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function listInvalidProperties()
{ {
$invalid_properties = array(); $invalid_properties = array();
return $invalid_properties; return $invalid_properties;
@ -139,8 +140,8 @@ class Category implements ArrayAccess
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -191,7 +192,7 @@ class Category implements ArrayAccess
} }
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -201,17 +202,17 @@ class Category implements ArrayAccess
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -223,17 +224,17 @@ class Category implements ArrayAccess
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -54,7 +54,7 @@ class Dog extends Animal implements ArrayAccess
static $swaggerModelName = 'Dog'; static $swaggerModelName = 'Dog';
/** /**
* 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(
@ -65,7 +65,7 @@ class Dog extends Animal implements ArrayAccess
return self::$swaggerTypes + parent::swaggerTypes(); return self::$swaggerTypes + parent::swaggerTypes();
} }
/** /**
* 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[]
*/ */
@ -96,8 +96,9 @@ class Dog extends Animal implements ArrayAccess
static $getters = array( static $getters = array(
'breed' => 'getBreed' 'breed' => 'getBreed'
); );
static function getters() { static function getters()
{
return parent::getters() + self::$getters; return parent::getters() + self::$getters;
} }
@ -124,10 +125,10 @@ class Dog extends Animal implements ArrayAccess
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function listInvalidProperties()
{ {
$invalid_properties = array(); $invalid_properties = array();
return $invalid_properties; return $invalid_properties;
@ -136,8 +137,8 @@ class Dog extends Animal implements ArrayAccess
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -167,7 +168,7 @@ class Dog extends Animal implements ArrayAccess
} }
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -177,17 +178,17 @@ class Dog extends Animal implements ArrayAccess
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -199,17 +200,17 @@ class Dog extends Animal implements ArrayAccess
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -54,7 +54,7 @@ class EnumClass implements ArrayAccess
static $swaggerModelName = 'EnumClass'; static $swaggerModelName = 'EnumClass';
/** /**
* 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(
@ -65,7 +65,7 @@ class EnumClass implements ArrayAccess
return self::$swaggerTypes; return self::$swaggerTypes;
} }
/** /**
* 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[]
*/ */
@ -96,8 +96,9 @@ class EnumClass implements ArrayAccess
static $getters = array( static $getters = array(
); );
static function getters() { static function getters()
{
return self::$getters; return self::$getters;
} }
@ -121,7 +122,7 @@ class EnumClass implements ArrayAccess
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function list_invalid_properties()
@ -133,8 +134,8 @@ class EnumClass implements ArrayAccess
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -143,7 +144,7 @@ class EnumClass implements ArrayAccess
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -153,17 +154,17 @@ class EnumClass implements ArrayAccess
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -175,17 +176,17 @@ class EnumClass implements ArrayAccess
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -54,7 +54,7 @@ class EnumTest implements ArrayAccess
static $swaggerModelName = 'Enum_Test'; static $swaggerModelName = 'Enum_Test';
/** /**
* 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(
@ -67,7 +67,7 @@ class EnumTest implements ArrayAccess
return self::$swaggerTypes; return self::$swaggerTypes;
} }
/** /**
* 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[]
*/ */
@ -104,17 +104,12 @@ class EnumTest implements ArrayAccess
'enum_integer' => 'getEnumInteger', 'enum_integer' => 'getEnumInteger',
'enum_number' => 'getEnumNumber' 'enum_number' => 'getEnumNumber'
); );
static function getters() { static function getters()
{
return self::$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;
@ -122,10 +117,10 @@ class EnumTest implements ArrayAccess
* Gets allowable values of the enum * Gets allowable values of the enum
* @return string[] * @return string[]
*/ */
public function getEnumStringAllowableValues() { public function getEnumStringAllowableValues()
{
return [ return [
self::ENUM_STRING_UPPER,
self::ENUM_STRING_LOWER,
]; ];
} }
@ -133,10 +128,10 @@ class EnumTest implements ArrayAccess
* Gets allowable values of the enum * Gets allowable values of the enum
* @return string[] * @return string[]
*/ */
public function getEnumIntegerAllowableValues() { public function getEnumIntegerAllowableValues()
{
return [ return [
self::ENUM_INTEGER_1,
self::ENUM_INTEGER_MINUS_1,
]; ];
} }
@ -144,10 +139,10 @@ class EnumTest implements ArrayAccess
* Gets allowable values of the enum * Gets allowable values of the enum
* @return string[] * @return string[]
*/ */
public function getEnumNumberAllowableValues() { public function getEnumNumberAllowableValues()
{
return [ return [
self::ENUM_NUMBER_1_DOT_1,
self::ENUM_NUMBER_MINUS_1_DOT_2,
]; ];
} }
@ -171,7 +166,7 @@ class EnumTest implements ArrayAccess
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function list_invalid_properties()
@ -179,15 +174,15 @@ class EnumTest implements ArrayAccess
$invalid_properties = array(); $invalid_properties = array();
$allowed_values = array("UPPER", "lower"); $allowed_values = array("UPPER", "lower");
if (!in_array($this->container['enum_string'], $allowed_values)) { if (!in_array($this->container['enum_string'], $allowed_values)) {
$invalid_properties[] = "invalid value for '$enum_string', must be one of #{allowed_values}."; $invalid_properties[] = "invalid value for 'enum_string', must be one of #{allowed_values}.";
} }
$allowed_values = array("1", "-1"); $allowed_values = array("1", "-1");
if (!in_array($this->container['enum_integer'], $allowed_values)) { if (!in_array($this->container['enum_integer'], $allowed_values)) {
$invalid_properties[] = "invalid value for '$enum_integer', must be one of #{allowed_values}."; $invalid_properties[] = "invalid value for 'enum_integer', must be one of #{allowed_values}.";
} }
$allowed_values = array("1.1", "-1.2"); $allowed_values = array("1.1", "-1.2");
if (!in_array($this->container['enum_number'], $allowed_values)) { if (!in_array($this->container['enum_number'], $allowed_values)) {
$invalid_properties[] = "invalid value for '$enum_number', must be one of #{allowed_values}."; $invalid_properties[] = "invalid value for 'enum_number', must be one of #{allowed_values}.";
} }
return $invalid_properties; return $invalid_properties;
} }
@ -195,8 +190,8 @@ class EnumTest implements ArrayAccess
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -292,7 +287,7 @@ class EnumTest implements ArrayAccess
} }
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -302,17 +297,17 @@ class EnumTest implements ArrayAccess
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -324,17 +319,17 @@ class EnumTest implements ArrayAccess
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -54,7 +54,7 @@ class FormatTest implements ArrayAccess
static $swaggerModelName = 'format_test'; static $swaggerModelName = 'format_test';
/** /**
* 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(
@ -69,7 +69,7 @@ class FormatTest implements ArrayAccess
'binary' => 'string', 'binary' => 'string',
'date' => '\DateTime', 'date' => '\DateTime',
'date_time' => '\DateTime', 'date_time' => '\DateTime',
'uuid' => 'string', 'uuid' => 'UUID',
'password' => 'string' 'password' => 'string'
); );
@ -77,7 +77,7 @@ class FormatTest implements ArrayAccess
return self::$swaggerTypes; return self::$swaggerTypes;
} }
/** /**
* 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[]
*/ */
@ -144,8 +144,9 @@ class FormatTest implements ArrayAccess
'uuid' => 'getUuid', 'uuid' => 'getUuid',
'password' => 'getPassword' 'password' => 'getPassword'
); );
static function getters() { static function getters()
{
return self::$getters; return self::$getters;
} }
@ -182,62 +183,62 @@ class FormatTest implements ArrayAccess
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function listInvalidProperties()
{ {
$invalid_properties = array(); $invalid_properties = array();
if ($this->container['integer'] > 100.0) { if ($this->container['integer'] > 100.0) {
$invalid_properties[] = "invalid value for '$integer', must be smaller than or equal to 100.0."; $invalid_properties[] = "invalid value for 'integer', must be smaller than or equal to 100.0.";
} }
if ($this->container['integer'] < 10.0) { if ($this->container['integer'] < 10.0) {
$invalid_properties[] = "invalid value for '$integer', must be bigger than or equal to 10.0."; $invalid_properties[] = "invalid value for 'integer', must be bigger than or equal to 10.0.";
} }
if ($this->container['int32'] > 200.0) { if ($this->container['int32'] > 200.0) {
$invalid_properties[] = "invalid value for '$int32', must be smaller than or equal to 200.0."; $invalid_properties[] = "invalid value for 'int32', must be smaller than or equal to 200.0.";
} }
if ($this->container['int32'] < 20.0) { if ($this->container['int32'] < 20.0) {
$invalid_properties[] = "invalid value for '$int32', must be bigger than or equal to 20.0."; $invalid_properties[] = "invalid value for 'int32', must be bigger than or equal to 20.0.";
} }
if ($this->container['number'] === null) { if ($this->container['number'] === null) {
$invalid_properties[] = "'$number' can't be null"; $invalid_properties[] = "'number' can't be null";
} }
if ($this->container['number'] > 543.2) { if ($this->container['number'] > 543.2) {
$invalid_properties[] = "invalid value for '$number', must be smaller than or equal to 543.2."; $invalid_properties[] = "invalid value for 'number', must be smaller than or equal to 543.2.";
} }
if ($this->container['number'] < 32.1) { if ($this->container['number'] < 32.1) {
$invalid_properties[] = "invalid value for '$number', must be bigger than or equal to 32.1."; $invalid_properties[] = "invalid value for 'number', must be bigger than or equal to 32.1.";
} }
if ($this->container['float'] > 987.6) { if ($this->container['float'] > 987.6) {
$invalid_properties[] = "invalid value for '$float', must be smaller than or equal to 987.6."; $invalid_properties[] = "invalid value for 'float', must be smaller than or equal to 987.6.";
} }
if ($this->container['float'] < 54.3) { if ($this->container['float'] < 54.3) {
$invalid_properties[] = "invalid value for '$float', must be bigger than or equal to 54.3."; $invalid_properties[] = "invalid value for 'float', must be bigger than or equal to 54.3.";
} }
if ($this->container['double'] > 123.4) { if ($this->container['double'] > 123.4) {
$invalid_properties[] = "invalid value for '$double', must be smaller than or equal to 123.4."; $invalid_properties[] = "invalid value for 'double', must be smaller than or equal to 123.4.";
} }
if ($this->container['double'] < 67.8) { if ($this->container['double'] < 67.8) {
$invalid_properties[] = "invalid value for '$double', must be bigger than or equal to 67.8."; $invalid_properties[] = "invalid value for 'double', must be bigger than or equal to 67.8.";
} }
if (!preg_match("/[a-z]/i", $this->container['string'])) { if (!preg_match("/[a-z]/i", $this->container['string'])) {
$invalid_properties[] = "invalid value for '$string', must be conform to the pattern /[a-z]/i."; $invalid_properties[] = "invalid value for 'string', must be conform to the pattern /[a-z]/i.";
} }
if ($this->container['byte'] === null) { if ($this->container['byte'] === null) {
$invalid_properties[] = "'$byte' can't be null"; $invalid_properties[] = "'byte' can't be null";
} }
if ($this->container['date'] === null) { if ($this->container['date'] === null) {
$invalid_properties[] = "'$date' can't be null"; $invalid_properties[] = "'date' can't be null";
} }
if ($this->container['password'] === null) { if ($this->container['password'] === null) {
$invalid_properties[] = "'$password' can't be null"; $invalid_properties[] = "'password' can't be null";
} }
if (strlen($this->container['password']) > 64) { if (strlen($this->container['password']) > 64) {
$invalid_properties[] = "invalid value for '$password', the character length must be smaller than or equal to 64."; $invalid_properties[] = "invalid value for 'password', the character length must be smaller than or equal to 64.";
} }
if (strlen($this->container['password']) < 10) { if (strlen($this->container['password']) < 10) {
$invalid_properties[] = "invalid value for '$password', the character length must be bigger than or equal to 10."; $invalid_properties[] = "invalid value for 'password', the character length must be bigger than or equal to 10.";
} }
return $invalid_properties; return $invalid_properties;
} }
@ -245,8 +246,8 @@ class FormatTest implements ArrayAccess
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -577,7 +578,7 @@ class FormatTest implements ArrayAccess
/** /**
* Gets uuid * Gets uuid
* @return string * @return UUID
*/ */
public function getUuid() public function getUuid()
{ {
@ -586,7 +587,7 @@ class FormatTest implements ArrayAccess
/** /**
* Sets uuid * Sets uuid
* @param string $uuid * @param UUID $uuid
* @return $this * @return $this
*/ */
public function setUuid($uuid) public function setUuid($uuid)
@ -624,7 +625,7 @@ class FormatTest implements ArrayAccess
} }
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -634,17 +635,17 @@ class FormatTest implements ArrayAccess
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -656,17 +657,17 @@ class FormatTest implements ArrayAccess
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -54,7 +54,7 @@ class Model200Response implements ArrayAccess
static $swaggerModelName = '200_response'; static $swaggerModelName = '200_response';
/** /**
* 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(
@ -65,7 +65,7 @@ class Model200Response implements ArrayAccess
return self::$swaggerTypes; return self::$swaggerTypes;
} }
/** /**
* 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[]
*/ */
@ -96,8 +96,9 @@ class Model200Response implements ArrayAccess
static $getters = array( static $getters = array(
'name' => 'getName' 'name' => 'getName'
); );
static function getters() { static function getters()
{
return self::$getters; return self::$getters;
} }
@ -122,10 +123,10 @@ class Model200Response implements ArrayAccess
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function listInvalidProperties()
{ {
$invalid_properties = array(); $invalid_properties = array();
return $invalid_properties; return $invalid_properties;
@ -134,8 +135,8 @@ class Model200Response implements ArrayAccess
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -165,7 +166,7 @@ class Model200Response implements ArrayAccess
} }
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -175,17 +176,17 @@ class Model200Response implements ArrayAccess
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -197,17 +198,17 @@ class Model200Response implements ArrayAccess
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -54,7 +54,7 @@ class ModelReturn implements ArrayAccess
static $swaggerModelName = 'Return'; static $swaggerModelName = 'Return';
/** /**
* 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(
@ -65,7 +65,7 @@ class ModelReturn implements ArrayAccess
return self::$swaggerTypes; return self::$swaggerTypes;
} }
/** /**
* 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[]
*/ */
@ -96,8 +96,9 @@ class ModelReturn implements ArrayAccess
static $getters = array( static $getters = array(
'return' => 'getReturn' 'return' => 'getReturn'
); );
static function getters() { static function getters()
{
return self::$getters; return self::$getters;
} }
@ -122,10 +123,10 @@ class ModelReturn implements ArrayAccess
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function listInvalidProperties()
{ {
$invalid_properties = array(); $invalid_properties = array();
return $invalid_properties; return $invalid_properties;
@ -134,8 +135,8 @@ class ModelReturn implements ArrayAccess
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -165,7 +166,7 @@ class ModelReturn implements ArrayAccess
} }
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -175,17 +176,17 @@ class ModelReturn implements ArrayAccess
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -197,17 +198,17 @@ class ModelReturn implements ArrayAccess
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -54,7 +54,7 @@ class Name implements ArrayAccess
static $swaggerModelName = 'Name'; static $swaggerModelName = 'Name';
/** /**
* 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(
@ -68,7 +68,7 @@ class Name implements ArrayAccess
return self::$swaggerTypes; return self::$swaggerTypes;
} }
/** /**
* 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[]
*/ */
@ -108,8 +108,9 @@ class Name implements ArrayAccess
'property' => 'getProperty', 'property' => 'getProperty',
'_123_number' => 'get123Number' '_123_number' => 'get123Number'
); );
static function getters() { static function getters()
{
return self::$getters; return self::$getters;
} }
@ -137,14 +138,14 @@ class Name implements ArrayAccess
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function listInvalidProperties()
{ {
$invalid_properties = array(); $invalid_properties = array();
if ($this->container['name'] === null) { if ($this->container['name'] === null) {
$invalid_properties[] = "'$name' can't be null"; $invalid_properties[] = "'name' can't be null";
} }
return $invalid_properties; return $invalid_properties;
} }
@ -152,8 +153,8 @@ class Name implements ArrayAccess
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -249,7 +250,7 @@ class Name implements ArrayAccess
} }
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -259,17 +260,17 @@ class Name implements ArrayAccess
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -281,17 +282,17 @@ class Name implements ArrayAccess
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -54,7 +54,7 @@ class Order implements ArrayAccess
static $swaggerModelName = 'Order'; static $swaggerModelName = 'Order';
/** /**
* 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(
@ -70,7 +70,7 @@ class Order implements ArrayAccess
return self::$swaggerTypes; return self::$swaggerTypes;
} }
/** /**
* 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[]
*/ */
@ -116,14 +116,12 @@ class Order implements ArrayAccess
'status' => 'getStatus', 'status' => 'getStatus',
'complete' => 'getComplete' 'complete' => 'getComplete'
); );
static function getters() { static function getters()
{
return self::$getters; return self::$getters;
} }
const STATUS_PLACED = 'placed';
const STATUS_APPROVED = 'approved';
const STATUS_DELIVERED = 'delivered';
@ -131,11 +129,10 @@ class Order implements ArrayAccess
* Gets allowable values of the enum * Gets allowable values of the enum
* @return string[] * @return string[]
*/ */
public function getStatusAllowableValues() { public function getStatusAllowableValues()
{
return [ return [
self::STATUS_PLACED,
self::STATUS_APPROVED,
self::STATUS_DELIVERED,
]; ];
} }
@ -162,15 +159,15 @@ class Order implements ArrayAccess
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function listInvalidProperties()
{ {
$invalid_properties = array(); $invalid_properties = array();
$allowed_values = array("placed", "approved", "delivered"); $allowed_values = array("placed", "approved", "delivered");
if (!in_array($this->container['status'], $allowed_values)) { if (!in_array($this->container['status'], $allowed_values)) {
$invalid_properties[] = "invalid value for '$status', must be one of #{allowed_values}."; $invalid_properties[] = "invalid value for 'status', must be one of #{allowed_values}.";
} }
return $invalid_properties; return $invalid_properties;
} }
@ -178,8 +175,8 @@ class Order implements ArrayAccess
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -322,7 +319,7 @@ class Order implements ArrayAccess
} }
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -332,17 +329,17 @@ class Order implements ArrayAccess
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -354,17 +351,17 @@ class Order implements ArrayAccess
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -54,7 +54,7 @@ class Pet implements ArrayAccess
static $swaggerModelName = 'Pet'; static $swaggerModelName = 'Pet';
/** /**
* 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(
@ -70,7 +70,7 @@ class Pet implements ArrayAccess
return self::$swaggerTypes; return self::$swaggerTypes;
} }
/** /**
* 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[]
*/ */
@ -116,14 +116,12 @@ class Pet implements ArrayAccess
'tags' => 'getTags', 'tags' => 'getTags',
'status' => 'getStatus' 'status' => 'getStatus'
); );
static function getters() { static function getters()
{
return self::$getters; return self::$getters;
} }
const STATUS_AVAILABLE = 'available';
const STATUS_PENDING = 'pending';
const STATUS_SOLD = 'sold';
@ -131,11 +129,10 @@ class Pet implements ArrayAccess
* Gets allowable values of the enum * Gets allowable values of the enum
* @return string[] * @return string[]
*/ */
public function getStatusAllowableValues() { public function getStatusAllowableValues()
{
return [ return [
self::STATUS_AVAILABLE,
self::STATUS_PENDING,
self::STATUS_SOLD,
]; ];
} }
@ -162,21 +159,21 @@ class Pet implements ArrayAccess
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function listInvalidProperties()
{ {
$invalid_properties = array(); $invalid_properties = array();
if ($this->container['name'] === null) { if ($this->container['name'] === null) {
$invalid_properties[] = "'$name' can't be null"; $invalid_properties[] = "'name' can't be null";
} }
if ($this->container['photo_urls'] === null) { if ($this->container['photo_urls'] === null) {
$invalid_properties[] = "'$photo_urls' can't be null"; $invalid_properties[] = "'photo_urls' can't be null";
} }
$allowed_values = array("available", "pending", "sold"); $allowed_values = array("available", "pending", "sold");
if (!in_array($this->container['status'], $allowed_values)) { if (!in_array($this->container['status'], $allowed_values)) {
$invalid_properties[] = "invalid value for '$status', must be one of #{allowed_values}."; $invalid_properties[] = "invalid value for 'status', must be one of #{allowed_values}.";
} }
return $invalid_properties; return $invalid_properties;
} }
@ -184,8 +181,8 @@ class Pet implements ArrayAccess
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -334,7 +331,7 @@ class Pet implements ArrayAccess
} }
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -344,17 +341,17 @@ class Pet implements ArrayAccess
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -366,17 +363,17 @@ class Pet implements ArrayAccess
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -54,7 +54,7 @@ class SpecialModelName implements ArrayAccess
static $swaggerModelName = '$special[model.name]'; static $swaggerModelName = '$special[model.name]';
/** /**
* 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(
@ -65,7 +65,7 @@ class SpecialModelName implements ArrayAccess
return self::$swaggerTypes; return self::$swaggerTypes;
} }
/** /**
* 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[]
*/ */
@ -96,8 +96,9 @@ class SpecialModelName implements ArrayAccess
static $getters = array( static $getters = array(
'special_property_name' => 'getSpecialPropertyName' 'special_property_name' => 'getSpecialPropertyName'
); );
static function getters() { static function getters()
{
return self::$getters; return self::$getters;
} }
@ -122,10 +123,10 @@ class SpecialModelName implements ArrayAccess
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function listInvalidProperties()
{ {
$invalid_properties = array(); $invalid_properties = array();
return $invalid_properties; return $invalid_properties;
@ -134,8 +135,8 @@ class SpecialModelName implements ArrayAccess
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -165,7 +166,7 @@ class SpecialModelName implements ArrayAccess
} }
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -175,17 +176,17 @@ class SpecialModelName implements ArrayAccess
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -197,17 +198,17 @@ class SpecialModelName implements ArrayAccess
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -54,7 +54,7 @@ class Tag implements ArrayAccess
static $swaggerModelName = 'Tag'; static $swaggerModelName = 'Tag';
/** /**
* 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(
@ -66,7 +66,7 @@ class Tag implements ArrayAccess
return self::$swaggerTypes; return self::$swaggerTypes;
} }
/** /**
* 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[]
*/ */
@ -100,8 +100,9 @@ class Tag implements ArrayAccess
'id' => 'getId', 'id' => 'getId',
'name' => 'getName' 'name' => 'getName'
); );
static function getters() { static function getters()
{
return self::$getters; return self::$getters;
} }
@ -127,10 +128,10 @@ class Tag implements ArrayAccess
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function listInvalidProperties()
{ {
$invalid_properties = array(); $invalid_properties = array();
return $invalid_properties; return $invalid_properties;
@ -139,8 +140,8 @@ class Tag implements ArrayAccess
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -191,7 +192,7 @@ class Tag implements ArrayAccess
} }
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -201,17 +202,17 @@ class Tag implements ArrayAccess
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -223,17 +224,17 @@ class Tag implements ArrayAccess
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -54,7 +54,7 @@ class User implements ArrayAccess
static $swaggerModelName = 'User'; static $swaggerModelName = 'User';
/** /**
* 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(
@ -72,7 +72,7 @@ class User implements ArrayAccess
return self::$swaggerTypes; return self::$swaggerTypes;
} }
/** /**
* 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[]
*/ */
@ -124,8 +124,9 @@ class User implements ArrayAccess
'phone' => 'getPhone', 'phone' => 'getPhone',
'user_status' => 'getUserStatus' 'user_status' => 'getUserStatus'
); );
static function getters() { static function getters()
{
return self::$getters; return self::$getters;
} }
@ -157,10 +158,10 @@ class User implements ArrayAccess
/** /**
* show all the invalid properties with reasons. * show all the invalid properties with reasons.
* *
* @return array invalid properties with reasons * @return array invalid properties with reasons
*/ */
public function list_invalid_properties() public function listInvalidProperties()
{ {
$invalid_properties = array(); $invalid_properties = array();
return $invalid_properties; return $invalid_properties;
@ -169,8 +170,8 @@ class User implements ArrayAccess
/** /**
* validate all the properties in the model * validate all the properties in the model
* return true if all passed * return true if all passed
* *
* @return bool True if all properteis are valid * @return bool True if all properteis are valid
*/ */
public function valid() public function valid()
{ {
@ -347,7 +348,7 @@ class User implements ArrayAccess
} }
/** /**
* Returns true if offset exists. False otherwise. * Returns true if offset exists. False otherwise.
* @param integer $offset Offset * @param integer $offset Offset
* @return boolean * @return boolean
*/ */
public function offsetExists($offset) public function offsetExists($offset)
@ -357,17 +358,17 @@ class User implements ArrayAccess
/** /**
* Gets offset. * Gets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return mixed * @return mixed
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {
return isset($this->container[$offset]) ? $this->container[$offset] : null; return isset($this->container[$offset]) ? $this->container[$offset] : null;
} }
/** /**
* Sets value based on offset. * Sets value based on offset.
* @param integer $offset Offset * @param integer $offset Offset
* @param mixed $value Value to be set * @param mixed $value Value to be set
* @return void * @return void
*/ */
@ -379,17 +380,17 @@ class User implements ArrayAccess
$this->container[$offset] = $value; $this->container[$offset] = $value;
} }
} }
/** /**
* Unsets offset. * Unsets offset.
* @param integer $offset Offset * @param integer $offset Offset
* @return void * @return void
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
unset($this->container[$offset]); unset($this->container[$offset]);
} }
/** /**
* Gets the string presentation of the object * Gets the string presentation of the object
* @return string * @return string

View File

@ -0,0 +1,73 @@
<?php
/**
* AnimalFarmTest
*
* 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;
/**
* AnimalFarmTest 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 AnimalFarmTest 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 AnimalFarm
*/
public function testAnimalFarm()
{
}
}

View File

@ -0,0 +1,73 @@
<?php
/**
* AnimalTest
*
* 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;
/**
* AnimalTest 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 AnimalTest 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 Animal
*/
public function testAnimal()
{
}
}

View File

@ -0,0 +1,73 @@
<?php
/**
* ApiResponseTest
*
* 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;
/**
* ApiResponseTest 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 ApiResponseTest 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 ApiResponse
*/
public function testApiResponse()
{
}
}

View File

@ -0,0 +1,73 @@
<?php
/**
* CatTest
*
* 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;
/**
* CatTest 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 CatTest 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 Cat
*/
public function testCat()
{
}
}

View File

@ -0,0 +1,73 @@
<?php
/**
* CategoryTest
*
* 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;
/**
* CategoryTest 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 CategoryTest 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 Category
*/
public function testCategory()
{
}
}

View File

@ -0,0 +1,73 @@
<?php
/**
* DogTest
*
* 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;
/**
* DogTest 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 DogTest 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 Dog
*/
public function testDog()
{
}
}

View File

@ -0,0 +1,73 @@
<?php
/**
* EnumClassTest
*
* 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;
/**
* EnumClassTest 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 EnumClassTest 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 EnumClass
*/
public function testEnumClass()
{
}
}

View File

@ -0,0 +1,73 @@
<?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()
{
}
}

View File

@ -0,0 +1,73 @@
<?php
/**
* FormatTestTest
*
* 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;
/**
* FormatTestTest 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 FormatTestTest 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 FormatTest
*/
public function testFormatTest()
{
}
}

View File

@ -0,0 +1,73 @@
<?php
/**
* Model200ResponseTest
*
* 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;
/**
* Model200ResponseTest Class Doc Comment
*
* @category Class
* @description Model for testing model name starting with number
* @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 Model200ResponseTest 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 Model200Response
*/
public function testModel200Response()
{
}
}

View File

@ -0,0 +1,73 @@
<?php
/**
* ModelReturnTest
*
* 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;
/**
* ModelReturnTest Class Doc Comment
*
* @category Class
* @description Model for testing reserved words
* @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 ModelReturnTest 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 ModelReturn
*/
public function testModelReturn()
{
}
}

View File

@ -0,0 +1,73 @@
<?php
/**
* NameTest
*
* 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;
/**
* NameTest Class Doc Comment
*
* @category Class
* @description Model for testing model name same as property name
* @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 NameTest 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 Name
*/
public function testName()
{
}
}

View File

@ -0,0 +1,73 @@
<?php
/**
* OrderTest
*
* 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;
/**
* OrderTest 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 OrderTest 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 Order
*/
public function testOrder()
{
}
}

View File

@ -0,0 +1,73 @@
<?php
/**
* PetTest
*
* 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;
/**
* PetTest 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 PetTest 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 Pet
*/
public function testPet()
{
}
}

View File

@ -0,0 +1,73 @@
<?php
/**
* SpecialModelNameTest
*
* 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;
/**
* SpecialModelNameTest 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 SpecialModelNameTest 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 SpecialModelName
*/
public function testSpecialModelName()
{
}
}

View File

@ -0,0 +1,73 @@
<?php
/**
* TagTest
*
* 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;
/**
* TagTest 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 TagTest 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 Tag
*/
public function testTag()
{
}
}

View File

@ -0,0 +1,73 @@
<?php
/**
* UserTest
*
* 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;
/**
* UserTest 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 UserTest 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 User
*/
public function testUser()
{
}
}