Rename default packages for php client (#315)

* Rename default packages for php client

* Generate php client (OAS3)

* Rename namespace for tests

* Delete unnecessary 'use'

* Rename method/variable

* Update php client (OAS3)

* Generate php client (OAS2)

* Rename namespace for tests

* Delete unused files

* Fix tests
This commit is contained in:
Akihito Nakano 2018-05-08 00:04:06 +09:00 committed by William Cheng
parent e2f8976fa7
commit 376d9af9c0
334 changed files with 3333 additions and 7738 deletions

View File

@ -56,10 +56,10 @@ public class PhpClientCodegen extends DefaultCodegen implements CodegenConfig {
public static final String SRC_BASE_PATH = "srcBasePath";
public static final String COMPOSER_VENDOR_NAME = "composerVendorName";
public static final String COMPOSER_PROJECT_NAME = "composerProjectName";
protected String invokerPackage = "Swagger\\Client";
protected String invokerPackage = "OpenAPITools\\Client";
protected String composerVendorName = null;
protected String composerProjectName = null;
protected String packagePath = "SwaggerClient-php";
protected String packagePath = "OpenAPIToolsClient-php";
protected String artifactVersion = null;
protected String srcBasePath = "lib";
protected String testBasePath = "test";

View File

@ -74,11 +74,11 @@ class Configuration
protected $host = '{{basePath}}';
/**
* User agent of the HTTP request, set to "PHP-Swagger" by default
* User agent of the HTTP request, set to "OpenAPI-Generator/{version}/PHP" by default
*
* @var string
*/
protected $userAgent = '{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}OpenAPI-Generator/{{#artifactVersion}}{{{.}}}{{/artifactVersion}}{{^artifactVersion}}1.0.0{{/artifactVersion}}/php{{/httpUserAgent}}';
protected $userAgent = '{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}OpenAPI-Generator/{{#artifactVersion}}{{{.}}}{{/artifactVersion}}{{^artifactVersion}}1.0.0{{/artifactVersion}}/PHP{{/httpUserAgent}}';
/**
* Debug switch (default set to false)

View File

@ -39,14 +39,14 @@ interface ModelInterface
*
* @return array
*/
public static function swaggerTypes();
public static function openAPIToolsTypes();
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerFormats();
public static function openAPIToolsFormats();
/**
* Array of attributes where the key is the local name, and the value is the original name

View File

@ -33,8 +33,8 @@ class ObjectSerializer
* Serialize data
*
* @param mixed $data the data to serialize
* @param string $type the SwaggerType of the data
* @param string $format the format of the Swagger type of the data
* @param string $type the OpenAPIToolsType of the data
* @param string $format the format of the OpenAPITools type of the data
*
* @return string|object serialized form of $data
*/
@ -51,19 +51,19 @@ class ObjectSerializer
return $data;
} elseif (is_object($data)) {
$values = [];
$formats = $data::swaggerFormats();
foreach ($data::swaggerTypes() as $property => $swaggerType) {
$formats = $data::openAPIToolsFormats();
foreach ($data::openAPIToolsTypes() as $property => $openAPIToolsType) {
$getter = $data::getters()[$property];
$value = $data->$getter();
if ($value !== null
&& !in_array($swaggerType, [{{&primitives}}], true)
&& method_exists($swaggerType, 'getAllowableEnumValues')
&& !in_array($value, $swaggerType::getAllowableEnumValues())) {
$imploded = implode("', '", $swaggerType::getAllowableEnumValues());
throw new \InvalidArgumentException("Invalid value for enum '$swaggerType', must be one of: '$imploded'");
&& !in_array($openAPIToolsType, [{{&primitives}}], true)
&& method_exists($openAPIToolsType, 'getAllowableEnumValues')
&& !in_array($value, $openAPIToolsType::getAllowableEnumValues())) {
$imploded = implode("', '", $openAPIToolsType::getAllowableEnumValues());
throw new \InvalidArgumentException("Invalid value for enum '$openAPIToolsType', must be one of: '$imploded'");
}
if ($value !== null) {
$values[$data::attributeMap()[$property]] = self::sanitizeForSerialization($value, $swaggerType, $formats[$property]);
$values[$data::attributeMap()[$property]] = self::sanitizeForSerialization($value, $openAPIToolsType, $formats[$property]);
}
}
return (object)$values;
@ -289,7 +289,7 @@ class ObjectSerializer
}
}
$instance = new $class();
foreach ($instance::swaggerTypes() as $property => $type) {
foreach ($instance::openAPIToolsTypes() as $property => $type) {
$propertySetter = $instance::setters()[$property];
if (!isset($propertySetter) || !isset($data->{$instance::attributeMap()[$property]})) {

View File

@ -5,7 +5,7 @@
{{/artifactVersion}}
"description": "{{description}}",
"keywords": [
"swagger",
"openapitools",
"php",
"sdk",
"api"

View File

@ -7,14 +7,14 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}{{^pa
*
* @var string
*/
protected static $swaggerModelName = '{{name}}';
protected static $openAPIToolsModelName = '{{name}}';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
{{#vars}}'{{name}}' => '{{{datatype}}}'{{#hasMore}},
{{/hasMore}}{{/vars}}
];
@ -24,7 +24,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}{{^pa
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
{{#vars}}'{{name}}' => {{#dataFormat}}'{{{dataFormat}}}'{{/dataFormat}}{{^dataFormat}}null{{/dataFormat}}{{#hasMore}},
{{/hasMore}}{{/vars}}
];
@ -34,9 +34,9 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}{{^pa
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes{{#parentSchema}} + parent::swaggerTypes(){{/parentSchema}};
return self::$openAPIToolsTypes{{#parentSchema}} + parent::openAPIToolsTypes(){{/parentSchema}};
}
/**
@ -44,9 +44,9 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}{{^pa
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats{{#parentSchema}} + parent::swaggerFormats(){{/parentSchema}};
return self::$openAPIToolsFormats{{#parentSchema}} + parent::openAPIToolsFormats(){{/parentSchema}};
}
/**
@ -118,7 +118,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}{{^pa
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}
{{#vars}}{{#isEnum}}{{#allowableValues}}{{#enumVars}}const {{enumName}}_{{{name}}} = {{{value}}};
@ -167,7 +167,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}{{^pa
// Initialize discriminator property with the model name.
$discriminator = array_search('{{discriminatorName}}', self::$attributeMap);
$this->container[$discriminator] = static::$swaggerModelName;
$this->container[$discriminator] = static::$openAPIToolsModelName;
{{/discriminator}}
}

View File

@ -32,11 +32,11 @@ public class PhpClientCodegenTest {
Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.HIDE_GENERATION_TIMESTAMP), Boolean.TRUE);
Assert.assertEquals(codegen.isHideGenerationTimestamp(), true);
Assert.assertEquals(codegen.modelPackage(), "Swagger\\Client\\Model");
Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.MODEL_PACKAGE), "Swagger\\Client\\Model");
Assert.assertEquals(codegen.apiPackage(), "Swagger\\Client\\Api");
Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.API_PACKAGE), "Swagger\\Client\\Api");
Assert.assertEquals(codegen.getInvokerPackage(), "Swagger\\Client");
Assert.assertEquals(codegen.modelPackage(), "OpenAPITools\\Client\\Model");
Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.MODEL_PACKAGE), "OpenAPITools\\Client\\Model");
Assert.assertEquals(codegen.apiPackage(), "OpenAPITools\\Client\\Api");
Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.API_PACKAGE), "OpenAPITools\\Client\\Api");
Assert.assertEquals(codegen.getInvokerPackage(), "OpenAPITools\\Client");
}
@Test

View File

@ -177,7 +177,7 @@ public class PhpModelTest {
final CodegenProperty property1 = cm.vars.get(0);
Assert.assertEquals(property1.baseName, "children");
Assert.assertEquals(property1.datatype, "\\Swagger\\Client\\Model\\Children");
Assert.assertEquals(property1.datatype, "\\OpenAPITools\\Client\\Model\\Children");
Assert.assertEquals(property1.name, "children");
Assert.assertEquals(property1.baseType, "Children");
Assert.assertFalse(property1.required);
@ -200,7 +200,7 @@ public class PhpModelTest {
final CodegenProperty property1 = cm.vars.get(0);
Assert.assertEquals(property1.baseName, "children");
Assert.assertEquals(property1.datatype, "\\Swagger\\Client\\Model\\Children[]");
Assert.assertEquals(property1.datatype, "\\OpenAPITools\\Client\\Model\\Children[]");
Assert.assertEquals(property1.name, "children");
Assert.assertEquals(property1.baseType, "array");
Assert.assertEquals(property1.containerType, "array");
@ -227,7 +227,7 @@ public class PhpModelTest {
final CodegenProperty property1 = cm.vars.get(0);
Assert.assertEquals(property1.baseName, "children");
Assert.assertEquals(property1.complexType, "Children");
Assert.assertEquals(property1.datatype, "map[string,\\Swagger\\Client\\Model\\Children]");
Assert.assertEquals(property1.datatype, "map[string,\\OpenAPITools\\Client\\Model\\Children]");
Assert.assertEquals(property1.name, "children");
Assert.assertEquals(property1.baseType, "map");
Assert.assertEquals(property1.containerType, "map");

View File

@ -1,7 +1,7 @@
# SwaggerClient-php
# OpenAPIToolsClient-php
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 1.0.0
- Build package: org.openapitools.codegen.languages.PhpClientCodegen
@ -36,7 +36,7 @@ Then run `composer install`
Download the files and include `autoload.php`:
```php
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
require_once('/path/to/OpenAPIToolsClient-php/vendor/autoload.php');
```
## Tests
@ -56,12 +56,12 @@ Please follow the [installation procedure](#installation--usage) and then run th
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\AnotherFakeApi(
$apiInstance = new OpenAPITools\Client\Api\AnotherFakeApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$client = new \Swagger\Client\Model\Client(); // \Swagger\Client\Model\Client | client model
$client = new \OpenAPITools\Client\Model\Client(); // \OpenAPITools\Client\Model\Client | client model
try {
$result = $apiInstance->testSpecialTags($client);

View File

@ -2,17 +2,17 @@
"name": "GIT_USER_ID/GIT_REPO_ID",
"description": "",
"keywords": [
"swagger",
"openapitools",
"php",
"sdk",
"api"
],
"homepage": "http://swagger.io",
"homepage": "http://openapi-generator.tech",
"license": "proprietary",
"authors": [
{
"name": "Swagger and contributors",
"homepage": "https://github.com/swagger-api/swagger-codegen"
"name": "OpenAPI-Generator contributors",
"homepage": "https://openapi-generator.tech"
}
],
"require": {
@ -28,9 +28,9 @@
"friendsofphp/php-cs-fixer": "~1.12"
},
"autoload": {
"psr-4": { "Swagger\\Client\\" : "lib/" }
"psr-4": { "OpenAPITools\\Client\\" : "lib/" }
},
"autoload-dev": {
"psr-4": { "Swagger\\Client\\" : "test/" }
"psr-4": { "OpenAPITools\\Client\\" : "test/" }
}
}

View File

@ -1,4 +1,4 @@
# Swagger\Client\AnotherFakeApi
# OpenAPITools\Client\AnotherFakeApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
@ -8,7 +8,7 @@ Method | HTTP request | Description
# **testSpecialTags**
> \Swagger\Client\Model\Client testSpecialTags($client)
> \OpenAPITools\Client\Model\Client testSpecialTags($client)
To test special tags
@ -19,12 +19,12 @@ To test special tags
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\AnotherFakeApi(
$apiInstance = new OpenAPITools\Client\Api\AnotherFakeApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$client = new \Swagger\Client\Model\Client(); // \Swagger\Client\Model\Client | client model
$client = new \OpenAPITools\Client\Model\Client(); // \OpenAPITools\Client\Model\Client | client model
try {
$result = $apiInstance->testSpecialTags($client);
@ -39,11 +39,11 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**client** | [**\Swagger\Client\Model\Client**](../Model/Client.md)| client model |
**client** | [**\OpenAPITools\Client\Model\Client**](../Model/Client.md)| client model |
### Return type
[**\Swagger\Client\Model\Client**](../Model/Client.md)
[**\OpenAPITools\Client\Model\Client**](../Model/Client.md)
### Authorization

View File

@ -1,4 +1,4 @@
# Swagger\Client\FakeApi
# OpenAPITools\Client\FakeApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
@ -17,7 +17,7 @@ Method | HTTP request | Description
# **fakeOuterBooleanSerialize**
> bool fakeOuterBooleanSerialize($boolean_post_body)
> bool fakeOuterBooleanSerialize($body)
@ -28,15 +28,15 @@ Test serialization of outer boolean types
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\FakeApi(
$apiInstance = new OpenAPITools\Client\Api\FakeApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$boolean_post_body = True; // bool | Input boolean as post body
$body = True; // bool | Input boolean as post body
try {
$result = $apiInstance->fakeOuterBooleanSerialize($boolean_post_body);
$result = $apiInstance->fakeOuterBooleanSerialize($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FakeApi->fakeOuterBooleanSerialize: ', $e->getMessage(), PHP_EOL;
@ -48,7 +48,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**boolean_post_body** | **bool**| Input boolean as post body | [optional]
**body** | **bool**| Input boolean as post body | [optional]
### Return type
@ -66,7 +66,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **fakeOuterCompositeSerialize**
> \Swagger\Client\Model\OuterComposite fakeOuterCompositeSerialize($outer_composite)
> \OpenAPITools\Client\Model\OuterComposite fakeOuterCompositeSerialize($outer_composite)
@ -77,12 +77,12 @@ Test serialization of object with outer number type
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\FakeApi(
$apiInstance = new OpenAPITools\Client\Api\FakeApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$outer_composite = new \Swagger\Client\Model\OuterComposite(); // \Swagger\Client\Model\OuterComposite | Input composite as post body
$outer_composite = new \OpenAPITools\Client\Model\OuterComposite(); // \OpenAPITools\Client\Model\OuterComposite | Input composite as post body
try {
$result = $apiInstance->fakeOuterCompositeSerialize($outer_composite);
@ -97,11 +97,11 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**outer_composite** | [**\Swagger\Client\Model\OuterComposite**](../Model/OuterComposite.md)| Input composite as post body | [optional]
**outer_composite** | [**\OpenAPITools\Client\Model\OuterComposite**](../Model/OuterComposite.md)| Input composite as post body | [optional]
### Return type
[**\Swagger\Client\Model\OuterComposite**](../Model/OuterComposite.md)
[**\OpenAPITools\Client\Model\OuterComposite**](../Model/OuterComposite.md)
### Authorization
@ -126,7 +126,7 @@ Test serialization of outer number types
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\FakeApi(
$apiInstance = new OpenAPITools\Client\Api\FakeApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
@ -175,7 +175,7 @@ Test serialization of outer string types
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\FakeApi(
$apiInstance = new OpenAPITools\Client\Api\FakeApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
@ -222,13 +222,13 @@ No authorization required
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\FakeApi(
$apiInstance = new OpenAPITools\Client\Api\FakeApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$query = 'query_example'; // string |
$user = new \Swagger\Client\Model\User(); // \Swagger\Client\Model\User |
$user = new \OpenAPITools\Client\Model\User(); // \OpenAPITools\Client\Model\User |
try {
$apiInstance->testBodyWithQueryParams($query, $user);
@ -243,7 +243,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**query** | **string**| |
**user** | [**\Swagger\Client\Model\User**](../Model/User.md)| |
**user** | [**\OpenAPITools\Client\Model\User**](../Model/User.md)| |
### Return type
@ -261,7 +261,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **testClientModel**
> \Swagger\Client\Model\Client testClientModel($client)
> \OpenAPITools\Client\Model\Client testClientModel($client)
To test \"client\" model
@ -272,12 +272,12 @@ To test \"client\" model
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\FakeApi(
$apiInstance = new OpenAPITools\Client\Api\FakeApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$client = new \Swagger\Client\Model\Client(); // \Swagger\Client\Model\Client | client model
$client = new \OpenAPITools\Client\Model\Client(); // \OpenAPITools\Client\Model\Client | client model
try {
$result = $apiInstance->testClientModel($client);
@ -292,11 +292,11 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**client** | [**\Swagger\Client\Model\Client**](../Model/Client.md)| client model |
**client** | [**\OpenAPITools\Client\Model\Client**](../Model/Client.md)| client model |
### Return type
[**\Swagger\Client\Model\Client**](../Model/Client.md)
[**\OpenAPITools\Client\Model\Client**](../Model/Client.md)
### Authorization
@ -322,12 +322,12 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: http_basic_test
$config = Swagger\Client\Configuration::getDefaultConfiguration()
$config = OpenAPITools\Client\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Swagger\Client\Api\FakeApi(
$apiInstance = new OpenAPITools\Client\Api\FakeApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
@ -402,7 +402,7 @@ To test enum parameters
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\FakeApi(
$apiInstance = new OpenAPITools\Client\Api\FakeApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
@ -413,7 +413,7 @@ $enum_query_string_array = array('enum_query_string_array_example'); // string[]
$enum_query_string = '-efg'; // string | Query parameter enum test (string)
$enum_query_integer = 56; // int | Query parameter enum test (double)
$enum_query_double = 3.4; // double | Query parameter enum test (double)
$enum_form_string_array = new \Swagger\Client\Model\array(); // string[] | Form parameter enum test (string array)
$enum_form_string_array = new \OpenAPITools\Client\Model\array(); // string[] | Form parameter enum test (string array)
$enum_form_string = '-efg'; // string | Form parameter enum test (string)
try {
@ -462,7 +462,7 @@ test inline additionalProperties
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\FakeApi(
$apiInstance = new OpenAPITools\Client\Api\FakeApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
@ -508,7 +508,7 @@ test json serialization of form data
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\FakeApi(
$apiInstance = new OpenAPITools\Client\Api\FakeApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()

View File

@ -1,4 +1,4 @@
# Swagger\Client\FakeClassnameTags123Api
# OpenAPITools\Client\FakeClassnameTags123Api
All URIs are relative to *http://petstore.swagger.io:80/v2*
@ -8,7 +8,7 @@ Method | HTTP request | Description
# **testClassname**
> \Swagger\Client\Model\Client testClassname($client)
> \OpenAPITools\Client\Model\Client testClassname($client)
To test class name in snake case
@ -20,17 +20,17 @@ To test class name in snake case
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key_query
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key_query', 'YOUR_API_KEY');
$config = OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key_query', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key_query', 'Bearer');
// $config = OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key_query', 'Bearer');
$apiInstance = new Swagger\Client\Api\FakeClassnameTags123Api(
$apiInstance = new OpenAPITools\Client\Api\FakeClassnameTags123Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$client = new \Swagger\Client\Model\Client(); // \Swagger\Client\Model\Client | client model
$client = new \OpenAPITools\Client\Model\Client(); // \OpenAPITools\Client\Model\Client | client model
try {
$result = $apiInstance->testClassname($client);
@ -45,11 +45,11 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**client** | [**\Swagger\Client\Model\Client**](../Model/Client.md)| client model |
**client** | [**\OpenAPITools\Client\Model\Client**](../Model/Client.md)| client model |
### Return type
[**\Swagger\Client\Model\Client**](../Model/Client.md)
[**\OpenAPITools\Client\Model\Client**](../Model/Client.md)
### Authorization

View File

@ -1,4 +1,4 @@
# Swagger\Client\PetApi
# OpenAPITools\Client\PetApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
@ -25,15 +25,15 @@ Add a new pet to the store
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: petstore_auth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$config = OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\PetApi(
$apiInstance = new OpenAPITools\Client\Api\PetApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$pet = new \Swagger\Client\Model\Pet(); // \Swagger\Client\Model\Pet | Pet object that needs to be added to the store
$pet = new \OpenAPITools\Client\Model\Pet(); // \OpenAPITools\Client\Model\Pet | Pet object that needs to be added to the store
try {
$apiInstance->addPet($pet);
@ -47,7 +47,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pet** | [**\Swagger\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store |
**pet** | [**\OpenAPITools\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store |
### Return type
@ -75,9 +75,9 @@ Deletes a pet
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: petstore_auth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$config = OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\PetApi(
$apiInstance = new OpenAPITools\Client\Api\PetApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
@ -117,7 +117,7 @@ void (empty response body)
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **findPetsByStatus**
> \Swagger\Client\Model\Pet[] findPetsByStatus($status)
> \OpenAPITools\Client\Model\Pet[] findPetsByStatus($status)
Finds Pets by status
@ -129,9 +129,9 @@ Multiple status values can be provided with comma separated strings
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: petstore_auth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$config = OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\PetApi(
$apiInstance = new OpenAPITools\Client\Api\PetApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
@ -156,7 +156,7 @@ Name | Type | Description | Notes
### Return type
[**\Swagger\Client\Model\Pet[]**](../Model/Pet.md)
[**\OpenAPITools\Client\Model\Pet[]**](../Model/Pet.md)
### Authorization
@ -170,7 +170,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **findPetsByTags**
> \Swagger\Client\Model\Pet[] findPetsByTags($tags)
> \OpenAPITools\Client\Model\Pet[] findPetsByTags($tags)
Finds Pets by tags
@ -182,9 +182,9 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: petstore_auth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$config = OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\PetApi(
$apiInstance = new OpenAPITools\Client\Api\PetApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
@ -209,7 +209,7 @@ Name | Type | Description | Notes
### Return type
[**\Swagger\Client\Model\Pet[]**](../Model/Pet.md)
[**\OpenAPITools\Client\Model\Pet[]**](../Model/Pet.md)
### Authorization
@ -223,7 +223,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **getPetById**
> \Swagger\Client\Model\Pet getPetById($pet_id)
> \OpenAPITools\Client\Model\Pet getPetById($pet_id)
Find pet by ID
@ -235,11 +235,11 @@ Returns a single pet
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
$config = OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');
// $config = OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');
$apiInstance = new Swagger\Client\Api\PetApi(
$apiInstance = new OpenAPITools\Client\Api\PetApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
@ -264,7 +264,7 @@ Name | Type | Description | Notes
### Return type
[**\Swagger\Client\Model\Pet**](../Model/Pet.md)
[**\OpenAPITools\Client\Model\Pet**](../Model/Pet.md)
### Authorization
@ -288,15 +288,15 @@ Update an existing pet
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: petstore_auth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$config = OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\PetApi(
$apiInstance = new OpenAPITools\Client\Api\PetApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$pet = new \Swagger\Client\Model\Pet(); // \Swagger\Client\Model\Pet | Pet object that needs to be added to the store
$pet = new \OpenAPITools\Client\Model\Pet(); // \OpenAPITools\Client\Model\Pet | Pet object that needs to be added to the store
try {
$apiInstance->updatePet($pet);
@ -310,7 +310,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pet** | [**\Swagger\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store |
**pet** | [**\OpenAPITools\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store |
### Return type
@ -338,9 +338,9 @@ Updates a pet in the store with form data
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: petstore_auth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$config = OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\PetApi(
$apiInstance = new OpenAPITools\Client\Api\PetApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
@ -382,7 +382,7 @@ void (empty response body)
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **uploadFile**
> \Swagger\Client\Model\ApiResponse uploadFile($pet_id, $additional_metadata, $file)
> \OpenAPITools\Client\Model\ApiResponse uploadFile($pet_id, $additional_metadata, $file)
uploads an image
@ -392,9 +392,9 @@ uploads an image
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: petstore_auth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$config = OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\PetApi(
$apiInstance = new OpenAPITools\Client\Api\PetApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
@ -423,7 +423,7 @@ Name | Type | Description | Notes
### Return type
[**\Swagger\Client\Model\ApiResponse**](../Model/ApiResponse.md)
[**\OpenAPITools\Client\Model\ApiResponse**](../Model/ApiResponse.md)
### Authorization

View File

@ -1,4 +1,4 @@
# Swagger\Client\StoreApi
# OpenAPITools\Client\StoreApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
@ -22,7 +22,7 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or non
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\StoreApi(
$apiInstance = new OpenAPITools\Client\Api\StoreApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
@ -71,11 +71,11 @@ Returns a map of status codes to quantities
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
$config = OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');
// $config = OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');
$apiInstance = new Swagger\Client\Api\StoreApi(
$apiInstance = new OpenAPITools\Client\Api\StoreApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
@ -110,7 +110,7 @@ This endpoint does not need any parameter.
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **getOrderById**
> \Swagger\Client\Model\Order getOrderById($order_id)
> \OpenAPITools\Client\Model\Order getOrderById($order_id)
Find purchase order by ID
@ -121,7 +121,7 @@ For valid response try integer IDs with value <= 5 or > 10. Other values will ge
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\StoreApi(
$apiInstance = new OpenAPITools\Client\Api\StoreApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
@ -145,7 +145,7 @@ Name | Type | Description | Notes
### Return type
[**\Swagger\Client\Model\Order**](../Model/Order.md)
[**\OpenAPITools\Client\Model\Order**](../Model/Order.md)
### Authorization
@ -159,7 +159,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **placeOrder**
> \Swagger\Client\Model\Order placeOrder($order)
> \OpenAPITools\Client\Model\Order placeOrder($order)
Place an order for a pet
@ -168,12 +168,12 @@ Place an order for a pet
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\StoreApi(
$apiInstance = new OpenAPITools\Client\Api\StoreApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$order = new \Swagger\Client\Model\Order(); // \Swagger\Client\Model\Order | order placed for purchasing the pet
$order = new \OpenAPITools\Client\Model\Order(); // \OpenAPITools\Client\Model\Order | order placed for purchasing the pet
try {
$result = $apiInstance->placeOrder($order);
@ -188,11 +188,11 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**order** | [**\Swagger\Client\Model\Order**](../Model/Order.md)| order placed for purchasing the pet |
**order** | [**\OpenAPITools\Client\Model\Order**](../Model/Order.md)| order placed for purchasing the pet |
### Return type
[**\Swagger\Client\Model\Order**](../Model/Order.md)
[**\OpenAPITools\Client\Model\Order**](../Model/Order.md)
### Authorization

View File

@ -1,4 +1,4 @@
# Swagger\Client\UserApi
# OpenAPITools\Client\UserApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
@ -26,12 +26,12 @@ This can only be done by the logged in user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\UserApi(
$apiInstance = new OpenAPITools\Client\Api\UserApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$user = new \Swagger\Client\Model\User(); // \Swagger\Client\Model\User | Created user object
$user = new \OpenAPITools\Client\Model\User(); // \OpenAPITools\Client\Model\User | Created user object
try {
$apiInstance->createUser($user);
@ -45,7 +45,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user** | [**\Swagger\Client\Model\User**](../Model/User.md)| Created user object |
**user** | [**\OpenAPITools\Client\Model\User**](../Model/User.md)| Created user object |
### Return type
@ -72,12 +72,12 @@ Creates list of users with given input array
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\UserApi(
$apiInstance = new OpenAPITools\Client\Api\UserApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$user = array(new \Swagger\Client\Model\array()); // \Swagger\Client\Model\User[] | List of user object
$user = array(new \OpenAPITools\Client\Model\array()); // \OpenAPITools\Client\Model\User[] | List of user object
try {
$apiInstance->createUsersWithArrayInput($user);
@ -91,7 +91,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user** | [**\Swagger\Client\Model\User[]**](../Model/array.md)| List of user object |
**user** | [**\OpenAPITools\Client\Model\User[]**](../Model/array.md)| List of user object |
### Return type
@ -118,12 +118,12 @@ Creates list of users with given input array
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\UserApi(
$apiInstance = new OpenAPITools\Client\Api\UserApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$user = array(new \Swagger\Client\Model\array()); // \Swagger\Client\Model\User[] | List of user object
$user = array(new \OpenAPITools\Client\Model\array()); // \OpenAPITools\Client\Model\User[] | List of user object
try {
$apiInstance->createUsersWithListInput($user);
@ -137,7 +137,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user** | [**\Swagger\Client\Model\User[]**](../Model/array.md)| List of user object |
**user** | [**\OpenAPITools\Client\Model\User[]**](../Model/array.md)| List of user object |
### Return type
@ -166,7 +166,7 @@ This can only be done by the logged in user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\UserApi(
$apiInstance = new OpenAPITools\Client\Api\UserApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
@ -203,7 +203,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
# **getUserByName**
> \Swagger\Client\Model\User getUserByName($username)
> \OpenAPITools\Client\Model\User getUserByName($username)
Get user by user name
@ -212,7 +212,7 @@ Get user by user name
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\UserApi(
$apiInstance = new OpenAPITools\Client\Api\UserApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
@ -236,7 +236,7 @@ Name | Type | Description | Notes
### Return type
[**\Swagger\Client\Model\User**](../Model/User.md)
[**\OpenAPITools\Client\Model\User**](../Model/User.md)
### Authorization
@ -259,7 +259,7 @@ Logs user into the system
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\UserApi(
$apiInstance = new OpenAPITools\Client\Api\UserApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
@ -308,7 +308,7 @@ Logs out current logged in user session
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\UserApi(
$apiInstance = new OpenAPITools\Client\Api\UserApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
@ -352,13 +352,13 @@ This can only be done by the logged in user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\UserApi(
$apiInstance = new OpenAPITools\Client\Api\UserApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$username = 'username_example'; // string | name that need to be deleted
$user = new \Swagger\Client\Model\User(); // \Swagger\Client\Model\User | Updated user object
$user = new \OpenAPITools\Client\Model\User(); // \OpenAPITools\Client\Model\User | Updated user object
try {
$apiInstance->updateUser($username, $user);
@ -373,7 +373,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **string**| name that need to be deleted |
**user** | [**\Swagger\Client\Model\User**](../Model/User.md)| Updated user object |
**user** | [**\OpenAPITools\Client\Model\User**](../Model/User.md)| Updated user object |
### Return type

View File

@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**array_of_string** | **string[]** | | [optional]
**array_array_of_integer** | [**int[][]**](array.md) | | [optional]
**array_array_of_model** | [**\Swagger\Client\Model\ReadOnlyFirst[][]**](array.md) | | [optional]
**array_array_of_model** | [**\OpenAPITools\Client\Model\ReadOnlyFirst[][]**](array.md) | | [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

@ -7,7 +7,7 @@ Name | Type | Description | Notes
**enum_string_required** | **string** | |
**enum_integer** | **int** | | [optional]
**enum_number** | **double** | | [optional]
**outer_enum** | [**\Swagger\Client\Model\OuterEnum**](OuterEnum.md) | | [optional]
**outer_enum** | [**\OpenAPITools\Client\Model\OuterEnum**](OuterEnum.md) | | [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

@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**uuid** | **string** | | [optional]
**date_time** | [**\DateTime**](\DateTime.md) | | [optional]
**map** | [**map[string,\Swagger\Client\Model\Animal]**](Animal.md) | | [optional]
**map** | [**map[string,\OpenAPITools\Client\Model\Animal]**](Animal.md) | | [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

@ -4,10 +4,10 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | | [optional]
**category** | [**\Swagger\Client\Model\Category**](Category.md) | | [optional]
**category** | [**\OpenAPITools\Client\Model\Category**](Category.md) | | [optional]
**name** | **string** | |
**photo_urls** | **string[]** | |
**tags** | [**\Swagger\Client\Model\Tag[]**](Tag.md) | | [optional]
**tags** | [**\OpenAPITools\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

@ -1,7 +1,7 @@
#!/bin/sh
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
#
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
git_user_id=$1
git_repo_id=$2

View File

@ -4,9 +4,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -16,17 +16,17 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Api;
namespace OpenAPITools\Client\Api;
use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
@ -34,18 +34,18 @@ use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Psr7\MultipartStream;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\RequestOptions;
use Swagger\Client\ApiException;
use Swagger\Client\Configuration;
use Swagger\Client\HeaderSelector;
use Swagger\Client\ObjectSerializer;
use OpenAPITools\Client\ApiException;
use OpenAPITools\Client\Configuration;
use OpenAPITools\Client\HeaderSelector;
use OpenAPITools\Client\ObjectSerializer;
/**
* AnotherFakeApi Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class AnotherFakeApi
{
@ -92,11 +92,11 @@ class AnotherFakeApi
*
* To test special tags
*
* @param \Swagger\Client\Model\Client $client client model (required)
* @param \OpenAPITools\Client\Model\Client $client client model (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Swagger\Client\Model\Client
* @return \OpenAPITools\Client\Model\Client
*/
public function testSpecialTags($client)
{
@ -109,15 +109,15 @@ class AnotherFakeApi
*
* To test special tags
*
* @param \Swagger\Client\Model\Client $client client model (required)
* @param \OpenAPITools\Client\Model\Client $client client model (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Swagger\Client\Model\Client, HTTP status code, HTTP response headers (array of strings)
* @return array of \OpenAPITools\Client\Model\Client, HTTP status code, HTTP response headers (array of strings)
*/
public function testSpecialTagsWithHttpInfo($client)
{
$returnType = '\Swagger\Client\Model\Client';
$returnType = '\OpenAPITools\Client\Model\Client';
$request = $this->testSpecialTagsRequest($client);
try {
@ -169,7 +169,7 @@ class AnotherFakeApi
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Swagger\Client\Model\Client',
'\OpenAPITools\Client\Model\Client',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@ -184,7 +184,7 @@ class AnotherFakeApi
*
* To test special tags
*
* @param \Swagger\Client\Model\Client $client client model (required)
* @param \OpenAPITools\Client\Model\Client $client client model (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -204,14 +204,14 @@ class AnotherFakeApi
*
* To test special tags
*
* @param \Swagger\Client\Model\Client $client client model (required)
* @param \OpenAPITools\Client\Model\Client $client client model (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function testSpecialTagsAsyncWithHttpInfo($client)
{
$returnType = '\Swagger\Client\Model\Client';
$returnType = '\OpenAPITools\Client\Model\Client';
$request = $this->testSpecialTagsRequest($client);
return $this->client
@ -254,7 +254,7 @@ class AnotherFakeApi
/**
* Create request for operation 'testSpecialTags'
*
* @param \Swagger\Client\Model\Client $client client model (required)
* @param \OpenAPITools\Client\Model\Client $client client model (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request

View File

@ -4,9 +4,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -16,17 +16,17 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Api;
namespace OpenAPITools\Client\Api;
use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
@ -34,18 +34,18 @@ use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Psr7\MultipartStream;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\RequestOptions;
use Swagger\Client\ApiException;
use Swagger\Client\Configuration;
use Swagger\Client\HeaderSelector;
use Swagger\Client\ObjectSerializer;
use OpenAPITools\Client\ApiException;
use OpenAPITools\Client\Configuration;
use OpenAPITools\Client\HeaderSelector;
use OpenAPITools\Client\ObjectSerializer;
/**
* FakeApi Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class FakeApi
{
@ -90,31 +90,31 @@ class FakeApi
/**
* Operation fakeOuterBooleanSerialize
*
* @param bool $boolean_post_body Input boolean as post body (optional)
* @param bool $body Input boolean as post body (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return bool
*/
public function fakeOuterBooleanSerialize($boolean_post_body = null)
public function fakeOuterBooleanSerialize($body = null)
{
list($response) = $this->fakeOuterBooleanSerializeWithHttpInfo($boolean_post_body);
list($response) = $this->fakeOuterBooleanSerializeWithHttpInfo($body);
return $response;
}
/**
* Operation fakeOuterBooleanSerializeWithHttpInfo
*
* @param bool $boolean_post_body Input boolean as post body (optional)
* @param bool $body Input boolean as post body (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of bool, HTTP status code, HTTP response headers (array of strings)
*/
public function fakeOuterBooleanSerializeWithHttpInfo($boolean_post_body = null)
public function fakeOuterBooleanSerializeWithHttpInfo($body = null)
{
$returnType = 'bool';
$request = $this->fakeOuterBooleanSerializeRequest($boolean_post_body);
$request = $this->fakeOuterBooleanSerializeRequest($body);
try {
$options = $this->createHttpClientOption();
@ -180,14 +180,14 @@ class FakeApi
*
*
*
* @param bool $boolean_post_body Input boolean as post body (optional)
* @param bool $body Input boolean as post body (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function fakeOuterBooleanSerializeAsync($boolean_post_body = null)
public function fakeOuterBooleanSerializeAsync($body = null)
{
return $this->fakeOuterBooleanSerializeAsyncWithHttpInfo($boolean_post_body)
return $this->fakeOuterBooleanSerializeAsyncWithHttpInfo($body)
->then(
function ($response) {
return $response[0];
@ -200,15 +200,15 @@ class FakeApi
*
*
*
* @param bool $boolean_post_body Input boolean as post body (optional)
* @param bool $body Input boolean as post body (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function fakeOuterBooleanSerializeAsyncWithHttpInfo($boolean_post_body = null)
public function fakeOuterBooleanSerializeAsyncWithHttpInfo($body = null)
{
$returnType = 'bool';
$request = $this->fakeOuterBooleanSerializeRequest($boolean_post_body);
$request = $this->fakeOuterBooleanSerializeRequest($body);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@ -250,12 +250,12 @@ class FakeApi
/**
* Create request for operation 'fakeOuterBooleanSerialize'
*
* @param bool $boolean_post_body Input boolean as post body (optional)
* @param bool $body Input boolean as post body (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
protected function fakeOuterBooleanSerializeRequest($boolean_post_body = null)
protected function fakeOuterBooleanSerializeRequest($body = null)
{
$resourcePath = '/fake/outer/boolean';
@ -269,8 +269,8 @@ class FakeApi
// body params
$_tempBody = null;
if (isset($boolean_post_body)) {
$_tempBody = $boolean_post_body;
if (isset($body)) {
$_tempBody = $body;
}
if ($multipart) {
@ -337,11 +337,11 @@ class FakeApi
/**
* Operation fakeOuterCompositeSerialize
*
* @param \Swagger\Client\Model\OuterComposite $outer_composite Input composite as post body (optional)
* @param \OpenAPITools\Client\Model\OuterComposite $outer_composite Input composite as post body (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Swagger\Client\Model\OuterComposite
* @return \OpenAPITools\Client\Model\OuterComposite
*/
public function fakeOuterCompositeSerialize($outer_composite = null)
{
@ -352,15 +352,15 @@ class FakeApi
/**
* Operation fakeOuterCompositeSerializeWithHttpInfo
*
* @param \Swagger\Client\Model\OuterComposite $outer_composite Input composite as post body (optional)
* @param \OpenAPITools\Client\Model\OuterComposite $outer_composite Input composite as post body (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Swagger\Client\Model\OuterComposite, HTTP status code, HTTP response headers (array of strings)
* @return array of \OpenAPITools\Client\Model\OuterComposite, HTTP status code, HTTP response headers (array of strings)
*/
public function fakeOuterCompositeSerializeWithHttpInfo($outer_composite = null)
{
$returnType = '\Swagger\Client\Model\OuterComposite';
$returnType = '\OpenAPITools\Client\Model\OuterComposite';
$request = $this->fakeOuterCompositeSerializeRequest($outer_composite);
try {
@ -412,7 +412,7 @@ class FakeApi
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Swagger\Client\Model\OuterComposite',
'\OpenAPITools\Client\Model\OuterComposite',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@ -427,7 +427,7 @@ class FakeApi
*
*
*
* @param \Swagger\Client\Model\OuterComposite $outer_composite Input composite as post body (optional)
* @param \OpenAPITools\Client\Model\OuterComposite $outer_composite Input composite as post body (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -447,14 +447,14 @@ class FakeApi
*
*
*
* @param \Swagger\Client\Model\OuterComposite $outer_composite Input composite as post body (optional)
* @param \OpenAPITools\Client\Model\OuterComposite $outer_composite Input composite as post body (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function fakeOuterCompositeSerializeAsyncWithHttpInfo($outer_composite = null)
{
$returnType = '\Swagger\Client\Model\OuterComposite';
$returnType = '\OpenAPITools\Client\Model\OuterComposite';
$request = $this->fakeOuterCompositeSerializeRequest($outer_composite);
return $this->client
@ -497,7 +497,7 @@ class FakeApi
/**
* Create request for operation 'fakeOuterCompositeSerialize'
*
* @param \Swagger\Client\Model\OuterComposite $outer_composite Input composite as post body (optional)
* @param \OpenAPITools\Client\Model\OuterComposite $outer_composite Input composite as post body (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
@ -586,7 +586,7 @@ class FakeApi
*
* @param float $body Input number as post body (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return float
*/
@ -601,7 +601,7 @@ class FakeApi
*
* @param float $body Input number as post body (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of float, HTTP status code, HTTP response headers (array of strings)
*/
@ -833,7 +833,7 @@ class FakeApi
*
* @param string $body Input string as post body (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return string
*/
@ -848,7 +848,7 @@ class FakeApi
*
* @param string $body Input string as post body (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of string, HTTP status code, HTTP response headers (array of strings)
*/
@ -1079,9 +1079,9 @@ class FakeApi
* Operation testBodyWithQueryParams
*
* @param string $query query (required)
* @param \Swagger\Client\Model\User $user user (required)
* @param \OpenAPITools\Client\Model\User $user user (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
@ -1094,9 +1094,9 @@ class FakeApi
* Operation testBodyWithQueryParamsWithHttpInfo
*
* @param string $query (required)
* @param \Swagger\Client\Model\User $user (required)
* @param \OpenAPITools\Client\Model\User $user (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
@ -1148,7 +1148,7 @@ class FakeApi
*
*
* @param string $query (required)
* @param \Swagger\Client\Model\User $user (required)
* @param \OpenAPITools\Client\Model\User $user (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -1169,7 +1169,7 @@ class FakeApi
*
*
* @param string $query (required)
* @param \Swagger\Client\Model\User $user (required)
* @param \OpenAPITools\Client\Model\User $user (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -1206,7 +1206,7 @@ class FakeApi
* Create request for operation 'testBodyWithQueryParams'
*
* @param string $query (required)
* @param \Swagger\Client\Model\User $user (required)
* @param \OpenAPITools\Client\Model\User $user (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
@ -1311,11 +1311,11 @@ class FakeApi
*
* To test \"client\" model
*
* @param \Swagger\Client\Model\Client $client client model (required)
* @param \OpenAPITools\Client\Model\Client $client client model (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Swagger\Client\Model\Client
* @return \OpenAPITools\Client\Model\Client
*/
public function testClientModel($client)
{
@ -1328,15 +1328,15 @@ class FakeApi
*
* To test \"client\" model
*
* @param \Swagger\Client\Model\Client $client client model (required)
* @param \OpenAPITools\Client\Model\Client $client client model (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Swagger\Client\Model\Client, HTTP status code, HTTP response headers (array of strings)
* @return array of \OpenAPITools\Client\Model\Client, HTTP status code, HTTP response headers (array of strings)
*/
public function testClientModelWithHttpInfo($client)
{
$returnType = '\Swagger\Client\Model\Client';
$returnType = '\OpenAPITools\Client\Model\Client';
$request = $this->testClientModelRequest($client);
try {
@ -1388,7 +1388,7 @@ class FakeApi
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Swagger\Client\Model\Client',
'\OpenAPITools\Client\Model\Client',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@ -1403,7 +1403,7 @@ class FakeApi
*
* To test \"client\" model
*
* @param \Swagger\Client\Model\Client $client client model (required)
* @param \OpenAPITools\Client\Model\Client $client client model (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -1423,14 +1423,14 @@ class FakeApi
*
* To test \"client\" model
*
* @param \Swagger\Client\Model\Client $client client model (required)
* @param \OpenAPITools\Client\Model\Client $client client model (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function testClientModelAsyncWithHttpInfo($client)
{
$returnType = '\Swagger\Client\Model\Client';
$returnType = '\OpenAPITools\Client\Model\Client';
$request = $this->testClientModelRequest($client);
return $this->client
@ -1473,7 +1473,7 @@ class FakeApi
/**
* Create request for operation 'testClientModel'
*
* @param \Swagger\Client\Model\Client $client client model (required)
* @param \OpenAPITools\Client\Model\Client $client client model (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
@ -1583,7 +1583,7 @@ class FakeApi
* @param string $password None (optional)
* @param string $callback None (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
@ -1612,7 +1612,7 @@ class FakeApi
* @param string $password None (optional)
* @param string $callback None (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
@ -1985,7 +1985,7 @@ class FakeApi
* @param string[] $enum_form_string_array Form parameter enum test (string array) (optional)
* @param string $enum_form_string Form parameter enum test (string) (optional, default to '-efg')
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
@ -2008,7 +2008,7 @@ class FakeApi
* @param string[] $enum_form_string_array Form parameter enum test (string array) (optional)
* @param string $enum_form_string Form parameter enum test (string) (optional, default to '-efg')
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
@ -2262,7 +2262,7 @@ class FakeApi
*
* @param string $request_body request body (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
@ -2278,7 +2278,7 @@ class FakeApi
*
* @param string $request_body request body (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
@ -2483,7 +2483,7 @@ class FakeApi
* @param string $param field1 (required)
* @param string $param2 field2 (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
@ -2500,7 +2500,7 @@ class FakeApi
* @param string $param field1 (required)
* @param string $param2 field2 (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/

View File

@ -4,9 +4,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -16,17 +16,17 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Api;
namespace OpenAPITools\Client\Api;
use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
@ -34,18 +34,18 @@ use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Psr7\MultipartStream;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\RequestOptions;
use Swagger\Client\ApiException;
use Swagger\Client\Configuration;
use Swagger\Client\HeaderSelector;
use Swagger\Client\ObjectSerializer;
use OpenAPITools\Client\ApiException;
use OpenAPITools\Client\Configuration;
use OpenAPITools\Client\HeaderSelector;
use OpenAPITools\Client\ObjectSerializer;
/**
* FakeClassnameTags123Api Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class FakeClassnameTags123Api
{
@ -92,11 +92,11 @@ class FakeClassnameTags123Api
*
* To test class name in snake case
*
* @param \Swagger\Client\Model\Client $client client model (required)
* @param \OpenAPITools\Client\Model\Client $client client model (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Swagger\Client\Model\Client
* @return \OpenAPITools\Client\Model\Client
*/
public function testClassname($client)
{
@ -109,15 +109,15 @@ class FakeClassnameTags123Api
*
* To test class name in snake case
*
* @param \Swagger\Client\Model\Client $client client model (required)
* @param \OpenAPITools\Client\Model\Client $client client model (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Swagger\Client\Model\Client, HTTP status code, HTTP response headers (array of strings)
* @return array of \OpenAPITools\Client\Model\Client, HTTP status code, HTTP response headers (array of strings)
*/
public function testClassnameWithHttpInfo($client)
{
$returnType = '\Swagger\Client\Model\Client';
$returnType = '\OpenAPITools\Client\Model\Client';
$request = $this->testClassnameRequest($client);
try {
@ -169,7 +169,7 @@ class FakeClassnameTags123Api
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Swagger\Client\Model\Client',
'\OpenAPITools\Client\Model\Client',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@ -184,7 +184,7 @@ class FakeClassnameTags123Api
*
* To test class name in snake case
*
* @param \Swagger\Client\Model\Client $client client model (required)
* @param \OpenAPITools\Client\Model\Client $client client model (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -204,14 +204,14 @@ class FakeClassnameTags123Api
*
* To test class name in snake case
*
* @param \Swagger\Client\Model\Client $client client model (required)
* @param \OpenAPITools\Client\Model\Client $client client model (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function testClassnameAsyncWithHttpInfo($client)
{
$returnType = '\Swagger\Client\Model\Client';
$returnType = '\OpenAPITools\Client\Model\Client';
$request = $this->testClassnameRequest($client);
return $this->client
@ -254,7 +254,7 @@ class FakeClassnameTags123Api
/**
* Create request for operation 'testClassname'
*
* @param \Swagger\Client\Model\Client $client client model (required)
* @param \OpenAPITools\Client\Model\Client $client client model (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request

View File

@ -4,9 +4,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -16,17 +16,17 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Api;
namespace OpenAPITools\Client\Api;
use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
@ -34,18 +34,18 @@ use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Psr7\MultipartStream;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\RequestOptions;
use Swagger\Client\ApiException;
use Swagger\Client\Configuration;
use Swagger\Client\HeaderSelector;
use Swagger\Client\ObjectSerializer;
use OpenAPITools\Client\ApiException;
use OpenAPITools\Client\Configuration;
use OpenAPITools\Client\HeaderSelector;
use OpenAPITools\Client\ObjectSerializer;
/**
* PetApi Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class PetApi
{
@ -92,9 +92,9 @@ class PetApi
*
* Add a new pet to the store
*
* @param \Swagger\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param \OpenAPITools\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
@ -108,9 +108,9 @@ class PetApi
*
* Add a new pet to the store
*
* @param \Swagger\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param \OpenAPITools\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
@ -161,7 +161,7 @@ class PetApi
*
* Add a new pet to the store
*
* @param \Swagger\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param \OpenAPITools\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -181,7 +181,7 @@ class PetApi
*
* Add a new pet to the store
*
* @param \Swagger\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param \OpenAPITools\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -217,7 +217,7 @@ class PetApi
/**
* Create request for operation 'addPet'
*
* @param \Swagger\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param \OpenAPITools\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
@ -319,7 +319,7 @@ class PetApi
* @param int $pet_id Pet id to delete (required)
* @param string $api_key api_key (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
@ -336,7 +336,7 @@ class PetApi
* @param int $pet_id Pet id to delete (required)
* @param string $api_key (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
@ -556,9 +556,9 @@ class PetApi
*
* @param string[] $status Status values that need to be considered for filter (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Swagger\Client\Model\Pet[]
* @return \OpenAPITools\Client\Model\Pet[]
*/
public function findPetsByStatus($status)
{
@ -573,13 +573,13 @@ class PetApi
*
* @param string[] $status Status values that need to be considered for filter (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Swagger\Client\Model\Pet[], HTTP status code, HTTP response headers (array of strings)
* @return array of \OpenAPITools\Client\Model\Pet[], HTTP status code, HTTP response headers (array of strings)
*/
public function findPetsByStatusWithHttpInfo($status)
{
$returnType = '\Swagger\Client\Model\Pet[]';
$returnType = '\OpenAPITools\Client\Model\Pet[]';
$request = $this->findPetsByStatusRequest($status);
try {
@ -631,7 +631,7 @@ class PetApi
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Swagger\Client\Model\Pet[]',
'\OpenAPITools\Client\Model\Pet[]',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@ -673,7 +673,7 @@ class PetApi
*/
public function findPetsByStatusAsyncWithHttpInfo($status)
{
$returnType = '\Swagger\Client\Model\Pet[]';
$returnType = '\OpenAPITools\Client\Model\Pet[]';
$request = $this->findPetsByStatusRequest($status);
return $this->client
@ -821,9 +821,9 @@ class PetApi
*
* @param string[] $tags Tags to filter by (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Swagger\Client\Model\Pet[]
* @return \OpenAPITools\Client\Model\Pet[]
*/
public function findPetsByTags($tags)
{
@ -838,13 +838,13 @@ class PetApi
*
* @param string[] $tags Tags to filter by (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Swagger\Client\Model\Pet[], HTTP status code, HTTP response headers (array of strings)
* @return array of \OpenAPITools\Client\Model\Pet[], HTTP status code, HTTP response headers (array of strings)
*/
public function findPetsByTagsWithHttpInfo($tags)
{
$returnType = '\Swagger\Client\Model\Pet[]';
$returnType = '\OpenAPITools\Client\Model\Pet[]';
$request = $this->findPetsByTagsRequest($tags);
try {
@ -896,7 +896,7 @@ class PetApi
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Swagger\Client\Model\Pet[]',
'\OpenAPITools\Client\Model\Pet[]',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@ -938,7 +938,7 @@ class PetApi
*/
public function findPetsByTagsAsyncWithHttpInfo($tags)
{
$returnType = '\Swagger\Client\Model\Pet[]';
$returnType = '\OpenAPITools\Client\Model\Pet[]';
$request = $this->findPetsByTagsRequest($tags);
return $this->client
@ -1086,9 +1086,9 @@ class PetApi
*
* @param int $pet_id ID of pet to return (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Swagger\Client\Model\Pet
* @return \OpenAPITools\Client\Model\Pet
*/
public function getPetById($pet_id)
{
@ -1103,13 +1103,13 @@ class PetApi
*
* @param int $pet_id ID of pet to return (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Swagger\Client\Model\Pet, HTTP status code, HTTP response headers (array of strings)
* @return array of \OpenAPITools\Client\Model\Pet, HTTP status code, HTTP response headers (array of strings)
*/
public function getPetByIdWithHttpInfo($pet_id)
{
$returnType = '\Swagger\Client\Model\Pet';
$returnType = '\OpenAPITools\Client\Model\Pet';
$request = $this->getPetByIdRequest($pet_id);
try {
@ -1161,7 +1161,7 @@ class PetApi
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Swagger\Client\Model\Pet',
'\OpenAPITools\Client\Model\Pet',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@ -1203,7 +1203,7 @@ class PetApi
*/
public function getPetByIdAsyncWithHttpInfo($pet_id)
{
$returnType = '\Swagger\Client\Model\Pet';
$returnType = '\OpenAPITools\Client\Model\Pet';
$request = $this->getPetByIdRequest($pet_id);
return $this->client
@ -1351,9 +1351,9 @@ class PetApi
*
* Update an existing pet
*
* @param \Swagger\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param \OpenAPITools\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
@ -1367,9 +1367,9 @@ class PetApi
*
* Update an existing pet
*
* @param \Swagger\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param \OpenAPITools\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
@ -1420,7 +1420,7 @@ class PetApi
*
* Update an existing pet
*
* @param \Swagger\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param \OpenAPITools\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -1440,7 +1440,7 @@ class PetApi
*
* Update an existing pet
*
* @param \Swagger\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param \OpenAPITools\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -1476,7 +1476,7 @@ class PetApi
/**
* Create request for operation 'updatePet'
*
* @param \Swagger\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param \OpenAPITools\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
@ -1579,7 +1579,7 @@ class PetApi
* @param string $name Updated name of the pet (optional)
* @param string $status Updated status of the pet (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
@ -1597,7 +1597,7 @@ class PetApi
* @param string $name Updated name of the pet (optional)
* @param string $status Updated status of the pet (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
@ -1826,9 +1826,9 @@ class PetApi
* @param string $additional_metadata Additional data to pass to server (optional)
* @param \SplFileObject $file file to upload (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Swagger\Client\Model\ApiResponse
* @return \OpenAPITools\Client\Model\ApiResponse
*/
public function uploadFile($pet_id, $additional_metadata = null, $file = null)
{
@ -1845,13 +1845,13 @@ class PetApi
* @param string $additional_metadata Additional data to pass to server (optional)
* @param \SplFileObject $file file to upload (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Swagger\Client\Model\ApiResponse, HTTP status code, HTTP response headers (array of strings)
* @return array of \OpenAPITools\Client\Model\ApiResponse, HTTP status code, HTTP response headers (array of strings)
*/
public function uploadFileWithHttpInfo($pet_id, $additional_metadata = null, $file = null)
{
$returnType = '\Swagger\Client\Model\ApiResponse';
$returnType = '\OpenAPITools\Client\Model\ApiResponse';
$request = $this->uploadFileRequest($pet_id, $additional_metadata, $file);
try {
@ -1903,7 +1903,7 @@ class PetApi
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Swagger\Client\Model\ApiResponse',
'\OpenAPITools\Client\Model\ApiResponse',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@ -1949,7 +1949,7 @@ class PetApi
*/
public function uploadFileAsyncWithHttpInfo($pet_id, $additional_metadata = null, $file = null)
{
$returnType = '\Swagger\Client\Model\ApiResponse';
$returnType = '\OpenAPITools\Client\Model\ApiResponse';
$request = $this->uploadFileRequest($pet_id, $additional_metadata, $file);
return $this->client

View File

@ -4,9 +4,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -16,17 +16,17 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Api;
namespace OpenAPITools\Client\Api;
use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
@ -34,18 +34,18 @@ use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Psr7\MultipartStream;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\RequestOptions;
use Swagger\Client\ApiException;
use Swagger\Client\Configuration;
use Swagger\Client\HeaderSelector;
use Swagger\Client\ObjectSerializer;
use OpenAPITools\Client\ApiException;
use OpenAPITools\Client\Configuration;
use OpenAPITools\Client\HeaderSelector;
use OpenAPITools\Client\ObjectSerializer;
/**
* StoreApi Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class StoreApi
{
@ -94,7 +94,7 @@ class StoreApi
*
* @param string $order_id ID of the order that needs to be deleted (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
@ -110,7 +110,7 @@ class StoreApi
*
* @param string $order_id ID of the order that needs to be deleted (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
@ -318,7 +318,7 @@ class StoreApi
* Returns pet inventories by status
*
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return map[string,int]
*/
@ -334,7 +334,7 @@ class StoreApi
* Returns pet inventories by status
*
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of map[string,int], HTTP status code, HTTP response headers (array of strings)
*/
@ -567,9 +567,9 @@ class StoreApi
*
* @param int $order_id ID of pet that needs to be fetched (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Swagger\Client\Model\Order
* @return \OpenAPITools\Client\Model\Order
*/
public function getOrderById($order_id)
{
@ -584,13 +584,13 @@ class StoreApi
*
* @param int $order_id ID of pet that needs to be fetched (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Swagger\Client\Model\Order, HTTP status code, HTTP response headers (array of strings)
* @return array of \OpenAPITools\Client\Model\Order, HTTP status code, HTTP response headers (array of strings)
*/
public function getOrderByIdWithHttpInfo($order_id)
{
$returnType = '\Swagger\Client\Model\Order';
$returnType = '\OpenAPITools\Client\Model\Order';
$request = $this->getOrderByIdRequest($order_id);
try {
@ -642,7 +642,7 @@ class StoreApi
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Swagger\Client\Model\Order',
'\OpenAPITools\Client\Model\Order',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@ -684,7 +684,7 @@ class StoreApi
*/
public function getOrderByIdAsyncWithHttpInfo($order_id)
{
$returnType = '\Swagger\Client\Model\Order';
$returnType = '\OpenAPITools\Client\Model\Order';
$request = $this->getOrderByIdRequest($order_id);
return $this->client
@ -834,11 +834,11 @@ class StoreApi
*
* Place an order for a pet
*
* @param \Swagger\Client\Model\Order $order order placed for purchasing the pet (required)
* @param \OpenAPITools\Client\Model\Order $order order placed for purchasing the pet (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Swagger\Client\Model\Order
* @return \OpenAPITools\Client\Model\Order
*/
public function placeOrder($order)
{
@ -851,15 +851,15 @@ class StoreApi
*
* Place an order for a pet
*
* @param \Swagger\Client\Model\Order $order order placed for purchasing the pet (required)
* @param \OpenAPITools\Client\Model\Order $order order placed for purchasing the pet (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Swagger\Client\Model\Order, HTTP status code, HTTP response headers (array of strings)
* @return array of \OpenAPITools\Client\Model\Order, HTTP status code, HTTP response headers (array of strings)
*/
public function placeOrderWithHttpInfo($order)
{
$returnType = '\Swagger\Client\Model\Order';
$returnType = '\OpenAPITools\Client\Model\Order';
$request = $this->placeOrderRequest($order);
try {
@ -911,7 +911,7 @@ class StoreApi
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Swagger\Client\Model\Order',
'\OpenAPITools\Client\Model\Order',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@ -926,7 +926,7 @@ class StoreApi
*
* Place an order for a pet
*
* @param \Swagger\Client\Model\Order $order order placed for purchasing the pet (required)
* @param \OpenAPITools\Client\Model\Order $order order placed for purchasing the pet (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -946,14 +946,14 @@ class StoreApi
*
* Place an order for a pet
*
* @param \Swagger\Client\Model\Order $order order placed for purchasing the pet (required)
* @param \OpenAPITools\Client\Model\Order $order order placed for purchasing the pet (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function placeOrderAsyncWithHttpInfo($order)
{
$returnType = '\Swagger\Client\Model\Order';
$returnType = '\OpenAPITools\Client\Model\Order';
$request = $this->placeOrderRequest($order);
return $this->client
@ -996,7 +996,7 @@ class StoreApi
/**
* Create request for operation 'placeOrder'
*
* @param \Swagger\Client\Model\Order $order order placed for purchasing the pet (required)
* @param \OpenAPITools\Client\Model\Order $order order placed for purchasing the pet (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request

View File

@ -4,9 +4,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -16,17 +16,17 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Api;
namespace OpenAPITools\Client\Api;
use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
@ -34,18 +34,18 @@ use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Psr7\MultipartStream;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\RequestOptions;
use Swagger\Client\ApiException;
use Swagger\Client\Configuration;
use Swagger\Client\HeaderSelector;
use Swagger\Client\ObjectSerializer;
use OpenAPITools\Client\ApiException;
use OpenAPITools\Client\Configuration;
use OpenAPITools\Client\HeaderSelector;
use OpenAPITools\Client\ObjectSerializer;
/**
* UserApi Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class UserApi
{
@ -92,9 +92,9 @@ class UserApi
*
* Create user
*
* @param \Swagger\Client\Model\User $user Created user object (required)
* @param \OpenAPITools\Client\Model\User $user Created user object (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
@ -108,9 +108,9 @@ class UserApi
*
* Create user
*
* @param \Swagger\Client\Model\User $user Created user object (required)
* @param \OpenAPITools\Client\Model\User $user Created user object (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
@ -161,7 +161,7 @@ class UserApi
*
* Create user
*
* @param \Swagger\Client\Model\User $user Created user object (required)
* @param \OpenAPITools\Client\Model\User $user Created user object (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -181,7 +181,7 @@ class UserApi
*
* Create user
*
* @param \Swagger\Client\Model\User $user Created user object (required)
* @param \OpenAPITools\Client\Model\User $user Created user object (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -217,7 +217,7 @@ class UserApi
/**
* Create request for operation 'createUser'
*
* @param \Swagger\Client\Model\User $user Created user object (required)
* @param \OpenAPITools\Client\Model\User $user Created user object (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
@ -312,9 +312,9 @@ class UserApi
*
* Creates list of users with given input array
*
* @param \Swagger\Client\Model\User[] $user List of user object (required)
* @param \OpenAPITools\Client\Model\User[] $user List of user object (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
@ -328,9 +328,9 @@ class UserApi
*
* Creates list of users with given input array
*
* @param \Swagger\Client\Model\User[] $user List of user object (required)
* @param \OpenAPITools\Client\Model\User[] $user List of user object (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
@ -381,7 +381,7 @@ class UserApi
*
* Creates list of users with given input array
*
* @param \Swagger\Client\Model\User[] $user List of user object (required)
* @param \OpenAPITools\Client\Model\User[] $user List of user object (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -401,7 +401,7 @@ class UserApi
*
* Creates list of users with given input array
*
* @param \Swagger\Client\Model\User[] $user List of user object (required)
* @param \OpenAPITools\Client\Model\User[] $user List of user object (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -437,7 +437,7 @@ class UserApi
/**
* Create request for operation 'createUsersWithArrayInput'
*
* @param \Swagger\Client\Model\User[] $user List of user object (required)
* @param \OpenAPITools\Client\Model\User[] $user List of user object (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
@ -532,9 +532,9 @@ class UserApi
*
* Creates list of users with given input array
*
* @param \Swagger\Client\Model\User[] $user List of user object (required)
* @param \OpenAPITools\Client\Model\User[] $user List of user object (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
@ -548,9 +548,9 @@ class UserApi
*
* Creates list of users with given input array
*
* @param \Swagger\Client\Model\User[] $user List of user object (required)
* @param \OpenAPITools\Client\Model\User[] $user List of user object (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
@ -601,7 +601,7 @@ class UserApi
*
* Creates list of users with given input array
*
* @param \Swagger\Client\Model\User[] $user List of user object (required)
* @param \OpenAPITools\Client\Model\User[] $user List of user object (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -621,7 +621,7 @@ class UserApi
*
* Creates list of users with given input array
*
* @param \Swagger\Client\Model\User[] $user List of user object (required)
* @param \OpenAPITools\Client\Model\User[] $user List of user object (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -657,7 +657,7 @@ class UserApi
/**
* Create request for operation 'createUsersWithListInput'
*
* @param \Swagger\Client\Model\User[] $user List of user object (required)
* @param \OpenAPITools\Client\Model\User[] $user List of user object (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
@ -754,7 +754,7 @@ class UserApi
*
* @param string $username The name that needs to be deleted (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
@ -770,7 +770,7 @@ class UserApi
*
* @param string $username The name that needs to be deleted (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
@ -979,9 +979,9 @@ class UserApi
*
* @param string $username The name that needs to be fetched. Use user1 for testing. (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Swagger\Client\Model\User
* @return \OpenAPITools\Client\Model\User
*/
public function getUserByName($username)
{
@ -996,13 +996,13 @@ class UserApi
*
* @param string $username The name that needs to be fetched. Use user1 for testing. (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Swagger\Client\Model\User, HTTP status code, HTTP response headers (array of strings)
* @return array of \OpenAPITools\Client\Model\User, HTTP status code, HTTP response headers (array of strings)
*/
public function getUserByNameWithHttpInfo($username)
{
$returnType = '\Swagger\Client\Model\User';
$returnType = '\OpenAPITools\Client\Model\User';
$request = $this->getUserByNameRequest($username);
try {
@ -1054,7 +1054,7 @@ class UserApi
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Swagger\Client\Model\User',
'\OpenAPITools\Client\Model\User',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@ -1096,7 +1096,7 @@ class UserApi
*/
public function getUserByNameAsyncWithHttpInfo($username)
{
$returnType = '\Swagger\Client\Model\User';
$returnType = '\OpenAPITools\Client\Model\User';
$request = $this->getUserByNameRequest($username);
return $this->client
@ -1242,7 +1242,7 @@ class UserApi
* @param string $username The user name for login (required)
* @param string $password The password for login in clear text (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return string
*/
@ -1260,7 +1260,7 @@ class UserApi
* @param string $username The user name for login (required)
* @param string $password The password for login in clear text (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of string, HTTP status code, HTTP response headers (array of strings)
*/
@ -1513,7 +1513,7 @@ class UserApi
* Logs out current logged in user session
*
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
@ -1528,7 +1528,7 @@ class UserApi
* Logs out current logged in user session
*
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
@ -1719,9 +1719,9 @@ class UserApi
* Updated user
*
* @param string $username name that need to be deleted (required)
* @param \Swagger\Client\Model\User $user Updated user object (required)
* @param \OpenAPITools\Client\Model\User $user Updated user object (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
@ -1736,9 +1736,9 @@ class UserApi
* Updated user
*
* @param string $username name that need to be deleted (required)
* @param \Swagger\Client\Model\User $user Updated user object (required)
* @param \OpenAPITools\Client\Model\User $user Updated user object (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \OpenAPITools\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
@ -1790,7 +1790,7 @@ class UserApi
* Updated user
*
* @param string $username name that need to be deleted (required)
* @param \Swagger\Client\Model\User $user Updated user object (required)
* @param \OpenAPITools\Client\Model\User $user Updated user object (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -1811,7 +1811,7 @@ class UserApi
* Updated user
*
* @param string $username name that need to be deleted (required)
* @param \Swagger\Client\Model\User $user Updated user object (required)
* @param \OpenAPITools\Client\Model\User $user Updated user object (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@ -1848,7 +1848,7 @@ class UserApi
* Create request for operation 'updateUser'
*
* @param string $username name that need to be deleted (required)
* @param \Swagger\Client\Model\User $user Updated user object (required)
* @param \OpenAPITools\Client\Model\User $user Updated user object (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request

View File

@ -4,9 +4,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -16,17 +16,17 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client;
namespace OpenAPITools\Client;
use \Exception;
@ -34,9 +34,9 @@ use \Exception;
* ApiException Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class ApiException extends Exception
{

View File

@ -4,9 +4,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -16,26 +16,26 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client;
namespace OpenAPITools\Client;
/**
* Configuration Class Doc Comment
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class Configuration
{
@ -84,11 +84,11 @@ class Configuration
protected $host = 'http://petstore.swagger.io:80/v2';
/**
* User agent of the HTTP request, set to "PHP-Swagger" by default
* User agent of the HTTP request, set to "OpenAPI-Generator/{version}/PHP" by default
*
* @var string
*/
protected $userAgent = 'Swagger-Codegen/1.0.0/php';
protected $userAgent = 'OpenAPI-Generator/1.0.0/PHP';
/**
* Debug switch (default set to false)
@ -393,7 +393,7 @@ class Configuration
*/
public static function toDebugReport()
{
$report = 'PHP SDK (Swagger\Client) Debug Report:' . PHP_EOL;
$report = 'PHP SDK (OpenAPITools\Client) Debug Report:' . PHP_EOL;
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' OpenAPI Spec Version: 1.0.0' . PHP_EOL;

View File

@ -4,9 +4,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -16,17 +16,17 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client;
namespace OpenAPITools\Client;
use \Exception;
@ -34,9 +34,9 @@ use \Exception;
* ApiException Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class HeaderSelector
{

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* AdditionalPropertiesClass Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'AdditionalPropertiesClass';
protected static $openAPIToolsModelName = 'AdditionalPropertiesClass';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'map_property' => 'map[string,string]',
'map_of_map_property' => 'map[string,map[string,string]]'
];
@ -66,7 +66,7 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'map_property' => null,
'map_of_map_property' => null
];
@ -76,9 +76,9 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -86,9 +86,9 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -160,7 +160,7 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* Animal Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class Animal implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class Animal implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'Animal';
protected static $openAPIToolsModelName = 'Animal';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'class_name' => 'string',
'color' => 'string'
];
@ -66,7 +66,7 @@ class Animal implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'class_name' => null,
'color' => null
];
@ -76,9 +76,9 @@ class Animal implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -86,9 +86,9 @@ class Animal implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -160,7 +160,7 @@ class Animal implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}
@ -187,7 +187,7 @@ class Animal implements ModelInterface, ArrayAccess
// Initialize discriminator property with the model name.
$discriminator = array_search('className', self::$attributeMap);
$this->container[$discriminator] = static::$swaggerModelName;
$this->container[$discriminator] = static::$openAPIToolsModelName;
}
/**

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* AnimalFarm Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class AnimalFarm implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class AnimalFarm implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'AnimalFarm';
protected static $openAPIToolsModelName = 'AnimalFarm';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
];
@ -65,7 +65,7 @@ class AnimalFarm implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
];
@ -74,9 +74,9 @@ class AnimalFarm implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -84,9 +84,9 @@ class AnimalFarm implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -155,7 +155,7 @@ class AnimalFarm implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* ApiResponse Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class ApiResponse implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class ApiResponse implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'ApiResponse';
protected static $openAPIToolsModelName = 'ApiResponse';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'code' => 'int',
'type' => 'string',
'message' => 'string'
@ -67,7 +67,7 @@ class ApiResponse implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'code' => 'int32',
'type' => null,
'message' => null
@ -78,9 +78,9 @@ class ApiResponse implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -88,9 +88,9 @@ class ApiResponse implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -165,7 +165,7 @@ class ApiResponse implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* ArrayOfArrayOfNumberOnly Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class ArrayOfArrayOfNumberOnly implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class ArrayOfArrayOfNumberOnly implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'ArrayOfArrayOfNumberOnly';
protected static $openAPIToolsModelName = 'ArrayOfArrayOfNumberOnly';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'array_array_number' => 'float[][]'
];
@ -65,7 +65,7 @@ class ArrayOfArrayOfNumberOnly implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'array_array_number' => null
];
@ -74,9 +74,9 @@ class ArrayOfArrayOfNumberOnly implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -84,9 +84,9 @@ class ArrayOfArrayOfNumberOnly implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -155,7 +155,7 @@ class ArrayOfArrayOfNumberOnly implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* ArrayOfNumberOnly Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class ArrayOfNumberOnly implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class ArrayOfNumberOnly implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'ArrayOfNumberOnly';
protected static $openAPIToolsModelName = 'ArrayOfNumberOnly';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'array_number' => 'float[]'
];
@ -65,7 +65,7 @@ class ArrayOfNumberOnly implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'array_number' => null
];
@ -74,9 +74,9 @@ class ArrayOfNumberOnly implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -84,9 +84,9 @@ class ArrayOfNumberOnly implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -155,7 +155,7 @@ class ArrayOfNumberOnly implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* ArrayTest Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class ArrayTest implements ModelInterface, ArrayAccess
{
@ -49,17 +49,17 @@ class ArrayTest implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'ArrayTest';
protected static $openAPIToolsModelName = 'ArrayTest';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'array_of_string' => 'string[]',
'array_array_of_integer' => 'int[][]',
'array_array_of_model' => '\Swagger\Client\Model\ReadOnlyFirst[][]'
'array_array_of_model' => '\OpenAPITools\Client\Model\ReadOnlyFirst[][]'
];
/**
@ -67,7 +67,7 @@ class ArrayTest implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'array_of_string' => null,
'array_array_of_integer' => 'int64',
'array_array_of_model' => null
@ -78,9 +78,9 @@ class ArrayTest implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -88,9 +88,9 @@ class ArrayTest implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -165,7 +165,7 @@ class ArrayTest implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}
@ -267,7 +267,7 @@ class ArrayTest implements ModelInterface, ArrayAccess
/**
* Gets array_array_of_model
*
* @return \Swagger\Client\Model\ReadOnlyFirst[][]
* @return \OpenAPITools\Client\Model\ReadOnlyFirst[][]
*/
public function getArrayArrayOfModel()
{
@ -277,7 +277,7 @@ class ArrayTest implements ModelInterface, ArrayAccess
/**
* Sets array_array_of_model
*
* @param \Swagger\Client\Model\ReadOnlyFirst[][] $array_array_of_model array_array_of_model
* @param \OpenAPITools\Client\Model\ReadOnlyFirst[][] $array_array_of_model array_array_of_model
*
* @return $this
*/

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* Capitalization Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class Capitalization implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class Capitalization implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'Capitalization';
protected static $openAPIToolsModelName = 'Capitalization';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'small_camel' => 'string',
'capital_camel' => 'string',
'small_snake' => 'string',
@ -70,7 +70,7 @@ class Capitalization implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'small_camel' => null,
'capital_camel' => null,
'small_snake' => null,
@ -84,9 +84,9 @@ class Capitalization implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -94,9 +94,9 @@ class Capitalization implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -180,7 +180,7 @@ class Capitalization implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,26 +17,26 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
use \Swagger\Client\ObjectSerializer;
namespace OpenAPITools\Client\Model;
use \OpenAPITools\Client\ObjectSerializer;
/**
* Cat Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class Cat extends Animal
{
@ -47,14 +47,14 @@ class Cat extends Animal
*
* @var string
*/
protected static $swaggerModelName = 'Cat';
protected static $openAPIToolsModelName = 'Cat';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'declawed' => 'bool'
];
@ -63,7 +63,7 @@ class Cat extends Animal
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'declawed' => null
];
@ -72,9 +72,9 @@ class Cat extends Animal
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes + parent::swaggerTypes();
return self::$openAPIToolsTypes + parent::openAPIToolsTypes();
}
/**
@ -82,9 +82,9 @@ class Cat extends Animal
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats + parent::swaggerFormats();
return self::$openAPIToolsFormats + parent::openAPIToolsFormats();
}
/**
@ -153,7 +153,7 @@ class Cat extends Animal
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* Category Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class Category implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class Category implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'Category';
protected static $openAPIToolsModelName = 'Category';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'id' => 'int',
'name' => 'string'
];
@ -66,7 +66,7 @@ class Category implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'id' => 'int64',
'name' => null
];
@ -76,9 +76,9 @@ class Category implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -86,9 +86,9 @@ class Category implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -160,7 +160,7 @@ class Category implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,29 +17,29 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* ClassModel Class Doc Comment
*
* @category Class
* @description Model for testing model with \&quot;_class\&quot; property
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class ClassModel implements ModelInterface, ArrayAccess
{
@ -50,14 +50,14 @@ class ClassModel implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'ClassModel';
protected static $openAPIToolsModelName = 'ClassModel';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'_class' => 'string'
];
@ -66,7 +66,7 @@ class ClassModel implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'_class' => null
];
@ -75,9 +75,9 @@ class ClassModel implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -85,9 +85,9 @@ class ClassModel implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -156,7 +156,7 @@ class ClassModel implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* Client Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class Client implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class Client implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'Client';
protected static $openAPIToolsModelName = 'Client';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'client' => 'string'
];
@ -65,7 +65,7 @@ class Client implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'client' => null
];
@ -74,9 +74,9 @@ class Client implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -84,9 +84,9 @@ class Client implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -155,7 +155,7 @@ class Client implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,26 +17,26 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
use \Swagger\Client\ObjectSerializer;
namespace OpenAPITools\Client\Model;
use \OpenAPITools\Client\ObjectSerializer;
/**
* Dog Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class Dog extends Animal
{
@ -47,14 +47,14 @@ class Dog extends Animal
*
* @var string
*/
protected static $swaggerModelName = 'Dog';
protected static $openAPIToolsModelName = 'Dog';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'breed' => 'string'
];
@ -63,7 +63,7 @@ class Dog extends Animal
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'breed' => null
];
@ -72,9 +72,9 @@ class Dog extends Animal
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes + parent::swaggerTypes();
return self::$openAPIToolsTypes + parent::openAPIToolsTypes();
}
/**
@ -82,9 +82,9 @@ class Dog extends Animal
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats + parent::swaggerFormats();
return self::$openAPIToolsFormats + parent::openAPIToolsFormats();
}
/**
@ -153,7 +153,7 @@ class Dog extends Animal
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* EnumArrays Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class EnumArrays implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class EnumArrays implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'EnumArrays';
protected static $openAPIToolsModelName = 'EnumArrays';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'just_symbol' => 'string',
'array_enum' => 'string[]'
];
@ -66,7 +66,7 @@ class EnumArrays implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'just_symbol' => null,
'array_enum' => null
];
@ -76,9 +76,9 @@ class EnumArrays implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -86,9 +86,9 @@ class EnumArrays implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -160,7 +160,7 @@ class EnumArrays implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}
const JUST_SYMBOL_GREATER_THAN_OR_EQUAL_TO = '>=';

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,26 +17,26 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
use \Swagger\Client\ObjectSerializer;
namespace OpenAPITools\Client\Model;
use \OpenAPITools\Client\ObjectSerializer;
/**
* EnumClass Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class EnumClass
{

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* EnumTest Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class EnumTest implements ModelInterface, ArrayAccess
{
@ -49,19 +49,19 @@ class EnumTest implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'Enum_Test';
protected static $openAPIToolsModelName = 'Enum_Test';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'enum_string' => 'string',
'enum_string_required' => 'string',
'enum_integer' => 'int',
'enum_number' => 'double',
'outer_enum' => '\Swagger\Client\Model\OuterEnum'
'outer_enum' => '\OpenAPITools\Client\Model\OuterEnum'
];
/**
@ -69,7 +69,7 @@ class EnumTest implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'enum_string' => null,
'enum_string_required' => null,
'enum_integer' => 'int32',
@ -82,9 +82,9 @@ class EnumTest implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -92,9 +92,9 @@ class EnumTest implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -175,7 +175,7 @@ class EnumTest implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}
const ENUM_STRING_UPPER = 'UPPER';
@ -462,7 +462,7 @@ class EnumTest implements ModelInterface, ArrayAccess
/**
* Gets outer_enum
*
* @return \Swagger\Client\Model\OuterEnum
* @return \OpenAPITools\Client\Model\OuterEnum
*/
public function getOuterEnum()
{
@ -472,7 +472,7 @@ class EnumTest implements ModelInterface, ArrayAccess
/**
* Sets outer_enum
*
* @param \Swagger\Client\Model\OuterEnum $outer_enum outer_enum
* @param \OpenAPITools\Client\Model\OuterEnum $outer_enum outer_enum
*
* @return $this
*/

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* FormatTest Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class FormatTest implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class FormatTest implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'format_test';
protected static $openAPIToolsModelName = 'format_test';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'integer' => 'int',
'int32' => 'int',
'int64' => 'int',
@ -77,7 +77,7 @@ class FormatTest implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'integer' => null,
'int32' => 'int32',
'int64' => 'int64',
@ -98,9 +98,9 @@ class FormatTest implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -108,9 +108,9 @@ class FormatTest implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -215,7 +215,7 @@ class FormatTest implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* HasOnlyReadOnly Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class HasOnlyReadOnly implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class HasOnlyReadOnly implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'hasOnlyReadOnly';
protected static $openAPIToolsModelName = 'hasOnlyReadOnly';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'bar' => 'string',
'foo' => 'string'
];
@ -66,7 +66,7 @@ class HasOnlyReadOnly implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'bar' => null,
'foo' => null
];
@ -76,9 +76,9 @@ class HasOnlyReadOnly implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -86,9 +86,9 @@ class HasOnlyReadOnly implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -160,7 +160,7 @@ class HasOnlyReadOnly implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* MapTest Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class MapTest implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class MapTest implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'MapTest';
protected static $openAPIToolsModelName = 'MapTest';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'map_map_of_string' => 'map[string,map[string,string]]',
'map_of_enum_string' => 'map[string,string]'
];
@ -66,7 +66,7 @@ class MapTest implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'map_map_of_string' => null,
'map_of_enum_string' => null
];
@ -76,9 +76,9 @@ class MapTest implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -86,9 +86,9 @@ class MapTest implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -160,7 +160,7 @@ class MapTest implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}
const MAP_OF_ENUM_STRING_UPPER = 'UPPER';

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* MixedPropertiesAndAdditionalPropertiesClass Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, ArrayAccess
{
@ -49,17 +49,17 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr
*
* @var string
*/
protected static $swaggerModelName = 'MixedPropertiesAndAdditionalPropertiesClass';
protected static $openAPIToolsModelName = 'MixedPropertiesAndAdditionalPropertiesClass';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'uuid' => 'string',
'date_time' => '\DateTime',
'map' => 'map[string,\Swagger\Client\Model\Animal]'
'map' => 'map[string,\OpenAPITools\Client\Model\Animal]'
];
/**
@ -67,7 +67,7 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'uuid' => 'uuid',
'date_time' => 'date-time',
'map' => null
@ -78,9 +78,9 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -88,9 +88,9 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -165,7 +165,7 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}
@ -267,7 +267,7 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr
/**
* Gets map
*
* @return map[string,\Swagger\Client\Model\Animal]
* @return map[string,\OpenAPITools\Client\Model\Animal]
*/
public function getMap()
{
@ -277,7 +277,7 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr
/**
* Sets map
*
* @param map[string,\Swagger\Client\Model\Animal] $map map
* @param map[string,\OpenAPITools\Client\Model\Animal] $map map
*
* @return $this
*/

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,29 +17,29 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* Model200Response Class Doc Comment
*
* @category Class
* @description Model for testing model name starting with number
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class Model200Response implements ModelInterface, ArrayAccess
{
@ -50,14 +50,14 @@ class Model200Response implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = '200_response';
protected static $openAPIToolsModelName = '200_response';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'name' => 'int',
'class' => 'string'
];
@ -67,7 +67,7 @@ class Model200Response implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'name' => 'int32',
'class' => null
];
@ -77,9 +77,9 @@ class Model200Response implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -87,9 +87,9 @@ class Model200Response implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -161,7 +161,7 @@ class Model200Response implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client\Model
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client\Model
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,23 +17,23 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
/**
* Interface abstracting model access.
*
* @package Swagger\Client\Model
* @author Swagger Codegen team
* @package OpenAPITools\Client\Model
* @author OpenAPI Generator team
*/
interface ModelInterface
{
@ -49,14 +49,14 @@ interface ModelInterface
*
* @return array
*/
public static function swaggerTypes();
public static function openAPIToolsTypes();
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerFormats();
public static function openAPIToolsFormats();
/**
* Array of attributes where the key is the local name, and the value is the original name

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* ModelList Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class ModelList implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class ModelList implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'List';
protected static $openAPIToolsModelName = 'List';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'_123_list' => 'string'
];
@ -65,7 +65,7 @@ class ModelList implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'_123_list' => null
];
@ -74,9 +74,9 @@ class ModelList implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -84,9 +84,9 @@ class ModelList implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -155,7 +155,7 @@ class ModelList implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,29 +17,29 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* ModelReturn Class Doc Comment
*
* @category Class
* @description Model for testing reserved words
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class ModelReturn implements ModelInterface, ArrayAccess
{
@ -50,14 +50,14 @@ class ModelReturn implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'Return';
protected static $openAPIToolsModelName = 'Return';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'return' => 'int'
];
@ -66,7 +66,7 @@ class ModelReturn implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'return' => 'int32'
];
@ -75,9 +75,9 @@ class ModelReturn implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -85,9 +85,9 @@ class ModelReturn implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -156,7 +156,7 @@ class ModelReturn implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,29 +17,29 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* Name Class Doc Comment
*
* @category Class
* @description Model for testing model name same as property name
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class Name implements ModelInterface, ArrayAccess
{
@ -50,14 +50,14 @@ class Name implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'Name';
protected static $openAPIToolsModelName = 'Name';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'name' => 'int',
'snake_case' => 'int',
'property' => 'string',
@ -69,7 +69,7 @@ class Name implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'name' => 'int32',
'snake_case' => 'int32',
'property' => null,
@ -81,9 +81,9 @@ class Name implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -91,9 +91,9 @@ class Name implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -171,7 +171,7 @@ class Name implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* NumberOnly Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class NumberOnly implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class NumberOnly implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'NumberOnly';
protected static $openAPIToolsModelName = 'NumberOnly';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'just_number' => 'float'
];
@ -65,7 +65,7 @@ class NumberOnly implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'just_number' => null
];
@ -74,9 +74,9 @@ class NumberOnly implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -84,9 +84,9 @@ class NumberOnly implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -155,7 +155,7 @@ class NumberOnly implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* Order Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class Order implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class Order implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'Order';
protected static $openAPIToolsModelName = 'Order';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'id' => 'int',
'pet_id' => 'int',
'quantity' => 'int',
@ -70,7 +70,7 @@ class Order implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'id' => 'int64',
'pet_id' => 'int64',
'quantity' => 'int32',
@ -84,9 +84,9 @@ class Order implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -94,9 +94,9 @@ class Order implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -180,7 +180,7 @@ class Order implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}
const STATUS_PLACED = 'placed';

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* OuterComposite Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class OuterComposite implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class OuterComposite implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'OuterComposite';
protected static $openAPIToolsModelName = 'OuterComposite';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'my_number' => 'float',
'my_string' => 'string',
'my_boolean' => 'bool'
@ -67,7 +67,7 @@ class OuterComposite implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'my_number' => null,
'my_string' => null,
'my_boolean' => null
@ -78,9 +78,9 @@ class OuterComposite implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -88,9 +88,9 @@ class OuterComposite implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -165,7 +165,7 @@ class OuterComposite implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,26 +17,26 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
use \Swagger\Client\ObjectSerializer;
namespace OpenAPITools\Client\Model;
use \OpenAPITools\Client\ObjectSerializer;
/**
* OuterEnum Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class OuterEnum
{

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* Pet Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class Pet implements ModelInterface, ArrayAccess
{
@ -49,19 +49,19 @@ class Pet implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'Pet';
protected static $openAPIToolsModelName = 'Pet';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'id' => 'int',
'category' => '\Swagger\Client\Model\Category',
'category' => '\OpenAPITools\Client\Model\Category',
'name' => 'string',
'photo_urls' => 'string[]',
'tags' => '\Swagger\Client\Model\Tag[]',
'tags' => '\OpenAPITools\Client\Model\Tag[]',
'status' => 'string'
];
@ -70,7 +70,7 @@ class Pet implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'id' => 'int64',
'category' => null,
'name' => null,
@ -84,9 +84,9 @@ class Pet implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -94,9 +94,9 @@ class Pet implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -180,7 +180,7 @@ class Pet implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}
const STATUS_AVAILABLE = 'available';
@ -292,7 +292,7 @@ class Pet implements ModelInterface, ArrayAccess
/**
* Gets category
*
* @return \Swagger\Client\Model\Category
* @return \OpenAPITools\Client\Model\Category
*/
public function getCategory()
{
@ -302,7 +302,7 @@ class Pet implements ModelInterface, ArrayAccess
/**
* Sets category
*
* @param \Swagger\Client\Model\Category $category category
* @param \OpenAPITools\Client\Model\Category $category category
*
* @return $this
*/
@ -364,7 +364,7 @@ class Pet implements ModelInterface, ArrayAccess
/**
* Gets tags
*
* @return \Swagger\Client\Model\Tag[]
* @return \OpenAPITools\Client\Model\Tag[]
*/
public function getTags()
{
@ -374,7 +374,7 @@ class Pet implements ModelInterface, ArrayAccess
/**
* Sets tags
*
* @param \Swagger\Client\Model\Tag[] $tags tags
* @param \OpenAPITools\Client\Model\Tag[] $tags tags
*
* @return $this
*/

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* ReadOnlyFirst Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class ReadOnlyFirst implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class ReadOnlyFirst implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'ReadOnlyFirst';
protected static $openAPIToolsModelName = 'ReadOnlyFirst';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'bar' => 'string',
'baz' => 'string'
];
@ -66,7 +66,7 @@ class ReadOnlyFirst implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'bar' => null,
'baz' => null
];
@ -76,9 +76,9 @@ class ReadOnlyFirst implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -86,9 +86,9 @@ class ReadOnlyFirst implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -160,7 +160,7 @@ class ReadOnlyFirst implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* SpecialModelName Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class SpecialModelName implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class SpecialModelName implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = '$special[model.name]';
protected static $openAPIToolsModelName = '$special[model.name]';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'special_property_name' => 'int'
];
@ -65,7 +65,7 @@ class SpecialModelName implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'special_property_name' => 'int64'
];
@ -74,9 +74,9 @@ class SpecialModelName implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -84,9 +84,9 @@ class SpecialModelName implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -155,7 +155,7 @@ class SpecialModelName implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* Tag Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class Tag implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class Tag implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'Tag';
protected static $openAPIToolsModelName = 'Tag';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'id' => 'int',
'name' => 'string'
];
@ -66,7 +66,7 @@ class Tag implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'id' => 'int64',
'name' => null
];
@ -76,9 +76,9 @@ class Tag implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -86,9 +86,9 @@ class Tag implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -160,7 +160,7 @@ class Tag implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,28 +17,28 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
namespace OpenAPITools\Client\Model;
use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\ObjectSerializer;
/**
* User Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class User implements ModelInterface, ArrayAccess
{
@ -49,14 +49,14 @@ class User implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $swaggerModelName = 'User';
protected static $openAPIToolsModelName = 'User';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
protected static $openAPIToolsTypes = [
'id' => 'int',
'username' => 'string',
'first_name' => 'string',
@ -72,7 +72,7 @@ class User implements ModelInterface, ArrayAccess
*
* @var string[]
*/
protected static $swaggerFormats = [
protected static $openAPIToolsFormats = [
'id' => 'int64',
'username' => null,
'first_name' => null,
@ -88,9 +88,9 @@ class User implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerTypes()
public static function openAPIToolsTypes()
{
return self::$swaggerTypes;
return self::$openAPIToolsTypes;
}
/**
@ -98,9 +98,9 @@ class User implements ModelInterface, ArrayAccess
*
* @return array
*/
public static function swaggerFormats()
public static function openAPIToolsFormats()
{
return self::$swaggerFormats;
return self::$openAPIToolsFormats;
}
/**
@ -190,7 +190,7 @@ class User implements ModelInterface, ArrayAccess
*/
public function getModelName()
{
return self::$swaggerModelName;
return self::$openAPIToolsModelName;
}

View File

@ -5,9 +5,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -17,25 +17,25 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Swagger\Client;
namespace OpenAPITools\Client;
/**
* ObjectSerializer Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class ObjectSerializer
{
@ -43,8 +43,8 @@ class ObjectSerializer
* Serialize data
*
* @param mixed $data the data to serialize
* @param string $type the SwaggerType of the data
* @param string $format the format of the Swagger type of the data
* @param string $type the OpenAPIToolsType of the data
* @param string $format the format of the OpenAPITools type of the data
*
* @return string|object serialized form of $data
*/
@ -61,19 +61,19 @@ class ObjectSerializer
return $data;
} elseif (is_object($data)) {
$values = [];
$formats = $data::swaggerFormats();
foreach ($data::swaggerTypes() as $property => $swaggerType) {
$formats = $data::openAPIToolsFormats();
foreach ($data::openAPIToolsTypes() as $property => $openAPIToolsType) {
$getter = $data::getters()[$property];
$value = $data->$getter();
if ($value !== null
&& !in_array($swaggerType, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)
&& method_exists($swaggerType, 'getAllowableEnumValues')
&& !in_array($value, $swaggerType::getAllowableEnumValues())) {
$imploded = implode("', '", $swaggerType::getAllowableEnumValues());
throw new \InvalidArgumentException("Invalid value for enum '$swaggerType', must be one of: '$imploded'");
&& !in_array($openAPIToolsType, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)
&& method_exists($openAPIToolsType, 'getAllowableEnumValues')
&& !in_array($value, $openAPIToolsType::getAllowableEnumValues())) {
$imploded = implode("', '", $openAPIToolsType::getAllowableEnumValues());
throw new \InvalidArgumentException("Invalid value for enum '$openAPIToolsType', must be one of: '$imploded'");
}
if ($value !== null) {
$values[$data::attributeMap()[$property]] = self::sanitizeForSerialization($value, $swaggerType, $formats[$property]);
$values[$data::attributeMap()[$property]] = self::sanitizeForSerialization($value, $openAPIToolsType, $formats[$property]);
}
}
return (object)$values;
@ -293,13 +293,13 @@ class ObjectSerializer
// If a discriminator is defined and points to a valid subclass, use it.
$discriminator = $class::DISCRIMINATOR;
if (!empty($discriminator) && isset($data->{$discriminator}) && is_string($data->{$discriminator})) {
$subclass = '\Swagger\Client\Model\\' . $data->{$discriminator};
$subclass = '\OpenAPITools\Client\Model\\' . $data->{$discriminator};
if (is_subclass_of($subclass, $class)) {
$class = $subclass;
}
}
$instance = new $class();
foreach ($instance::swaggerTypes() as $property => $type) {
foreach ($instance::openAPIToolsTypes() as $property => $type) {
$propertySetter = $instance::setters()[$property];
if (!isset($propertySetter) || !isset($data->{$instance::attributeMap()[$property]})) {

View File

@ -4,9 +4,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -16,29 +16,29 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Please update the test case below to test the endpoint.
*/
namespace Swagger\Client;
namespace OpenAPITools\Client;
use \Swagger\Client\Configuration;
use \Swagger\Client\ApiException;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\Configuration;
use \OpenAPITools\Client\ApiException;
use \OpenAPITools\Client\ObjectSerializer;
/**
* AnotherFakeApiTest Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class AnotherFakeApiTest extends \PHPUnit_Framework_TestCase
{

View File

@ -4,9 +4,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -16,29 +16,29 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Please update the test case below to test the endpoint.
*/
namespace Swagger\Client;
namespace OpenAPITools\Client;
use \Swagger\Client\Configuration;
use \Swagger\Client\ApiException;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\Configuration;
use \OpenAPITools\Client\ApiException;
use \OpenAPITools\Client\ObjectSerializer;
/**
* FakeApiTest Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class FakeApiTest extends \PHPUnit_Framework_TestCase
{

View File

@ -4,9 +4,9 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
@ -16,29 +16,29 @@
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.0-SNAPSHOT
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Please update the test case below to test the endpoint.
*/
namespace Swagger\Client;
namespace OpenAPITools\Client;
use \Swagger\Client\Configuration;
use \Swagger\Client\ApiException;
use \Swagger\Client\ObjectSerializer;
use \OpenAPITools\Client\Configuration;
use \OpenAPITools\Client\ApiException;
use \OpenAPITools\Client\ObjectSerializer;
/**
* FakeClassnameTags123ApiTest Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
* @package OpenAPITools\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class FakeClassnameTags123ApiTest extends \PHPUnit_Framework_TestCase
{

Some files were not shown because too many files have changed in this diff Show More