diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpClientCodegen.java index d7dae12c74d..5d7c07e19f4 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpClientCodegen.java @@ -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"; diff --git a/modules/openapi-generator/src/main/resources/php/Configuration.mustache b/modules/openapi-generator/src/main/resources/php/Configuration.mustache index 6a2561b50c5..44c80ecb7c8 100644 --- a/modules/openapi-generator/src/main/resources/php/Configuration.mustache +++ b/modules/openapi-generator/src/main/resources/php/Configuration.mustache @@ -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) diff --git a/modules/openapi-generator/src/main/resources/php/ModelInterface.mustache b/modules/openapi-generator/src/main/resources/php/ModelInterface.mustache index 01a26a1243f..64b7614ded1 100644 --- a/modules/openapi-generator/src/main/resources/php/ModelInterface.mustache +++ b/modules/openapi-generator/src/main/resources/php/ModelInterface.mustache @@ -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 diff --git a/modules/openapi-generator/src/main/resources/php/ObjectSerializer.mustache b/modules/openapi-generator/src/main/resources/php/ObjectSerializer.mustache index 70e5a620612..c9c9baa34d6 100644 --- a/modules/openapi-generator/src/main/resources/php/ObjectSerializer.mustache +++ b/modules/openapi-generator/src/main/resources/php/ObjectSerializer.mustache @@ -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]})) { diff --git a/modules/openapi-generator/src/main/resources/php/composer.mustache b/modules/openapi-generator/src/main/resources/php/composer.mustache index 0b120be5b45..7da4820b942 100644 --- a/modules/openapi-generator/src/main/resources/php/composer.mustache +++ b/modules/openapi-generator/src/main/resources/php/composer.mustache @@ -5,7 +5,7 @@ {{/artifactVersion}} "description": "{{description}}", "keywords": [ - "swagger", + "openapitools", "php", "sdk", "api" diff --git a/modules/openapi-generator/src/main/resources/php/model_generic.mustache b/modules/openapi-generator/src/main/resources/php/model_generic.mustache index e9f01ef8268..899f419686d 100644 --- a/modules/openapi-generator/src/main/resources/php/model_generic.mustache +++ b/modules/openapi-generator/src/main/resources/php/model_generic.mustache @@ -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}} } diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/php/PhpClientCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/php/PhpClientCodegenTest.java index 08eca85d9ed..2a444f6cec5 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/php/PhpClientCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/php/PhpClientCodegenTest.java @@ -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 diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/php/PhpModelTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/php/PhpModelTest.java index ef0ae13fd5f..cd85b62e2dd 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/php/PhpModelTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/php/PhpModelTest.java @@ -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"); diff --git a/samples/client/petstore/php/SwaggerClient-php/.php_cs b/samples/client/petstore/php/OpenAPIToolsClient-php/.php_cs similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/.php_cs rename to samples/client/petstore/php/OpenAPIToolsClient-php/.php_cs diff --git a/samples/client/petstore/php/SwaggerClient-php/.travis.yml b/samples/client/petstore/php/OpenAPIToolsClient-php/.travis.yml similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/.travis.yml rename to samples/client/petstore/php/OpenAPIToolsClient-php/.travis.yml diff --git a/samples/client/petstore/php/SwaggerClient-php/README.md b/samples/client/petstore/php/OpenAPIToolsClient-php/README.md similarity index 95% rename from samples/client/petstore/php/SwaggerClient-php/README.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/README.md index f21f3275ba6..aa49db63bb7 100644 --- a/samples/client/petstore/php/SwaggerClient-php/README.md +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/README.md @@ -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 testSpecialTags($client); diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/composer.json b/samples/client/petstore/php/OpenAPIToolsClient-php/composer.json similarity index 66% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/composer.json rename to samples/client/petstore/php/OpenAPIToolsClient-php/composer.json index 2ebbe805eea..2991dfef929 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/composer.json +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/composer.json @@ -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/" } } } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Api/AnotherFakeApi.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Api/AnotherFakeApi.md similarity index 75% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Api/AnotherFakeApi.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Api/AnotherFakeApi.md index bac58af1eed..1de69af3b97 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Api/AnotherFakeApi.md +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Api/AnotherFakeApi.md @@ -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 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 diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Api/FakeApi.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Api/FakeApi.md similarity index 89% rename from samples/client/petstore/php/SwaggerClient-php/docs/Api/FakeApi.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Api/FakeApi.md index 2fa464bd649..2bb2cb585d3 100644 --- a/samples/client/petstore/php/SwaggerClient-php/docs/Api/FakeApi.md +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Api/FakeApi.md @@ -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 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 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 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 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 \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 diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Api/PetApi.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Api/PetApi.md similarity index 82% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Api/PetApi.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Api/PetApi.md index 6c4fe686522..4b57dd6cece 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Api/PetApi.md +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Api/PetApi.md @@ -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 diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Api/StoreApi.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Api/StoreApi.md similarity index 84% rename from samples/client/petstore/php/SwaggerClient-php/docs/Api/StoreApi.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Api/StoreApi.md index e1e9dbf04fb..5c08e777c31 100644 --- a/samples/client/petstore/php/SwaggerClient-php/docs/Api/StoreApi.md +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Api/StoreApi.md @@ -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 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 \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 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 diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Api/UserApi.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Api/UserApi.md similarity index 87% rename from samples/client/petstore/php/SwaggerClient-php/docs/Api/UserApi.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Api/UserApi.md index 744ffb59b80..6f754bd169b 100644 --- a/samples/client/petstore/php/SwaggerClient-php/docs/Api/UserApi.md +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Api/UserApi.md @@ -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. 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 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 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. \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 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 diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/AdditionalPropertiesClass.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/AdditionalPropertiesClass.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/AdditionalPropertiesClass.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/AdditionalPropertiesClass.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/Animal.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Animal.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/Animal.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Animal.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/AnimalFarm.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/AnimalFarm.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/AnimalFarm.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/AnimalFarm.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/ApiResponse.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ApiResponse.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/ApiResponse.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ApiResponse.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ArrayOfArrayOfNumberOnly.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/ArrayOfArrayOfNumberOnly.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ArrayOfArrayOfNumberOnly.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/ArrayOfNumberOnly.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ArrayOfNumberOnly.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/ArrayOfNumberOnly.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ArrayOfNumberOnly.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/ArrayTest.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ArrayTest.md similarity index 79% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/ArrayTest.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ArrayTest.md index f982dc2e4c7..149f459fce3 100644 --- a/samples/client/petstore/php/SwaggerClient-php/docs/Model/ArrayTest.md +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ArrayTest.md @@ -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) diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/Capitalization.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Capitalization.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/Capitalization.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Capitalization.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/Cat.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Cat.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/Cat.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Cat.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/Category.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Category.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/Category.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Category.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/ClassModel.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ClassModel.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/ClassModel.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ClassModel.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/Client.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Client.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/Client.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Client.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/Dog.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Dog.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/Dog.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Dog.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/EnumArrays.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/EnumArrays.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/EnumArrays.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/EnumArrays.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/EnumClass.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/EnumClass.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/EnumClass.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/EnumClass.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/EnumTest.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/EnumTest.md similarity index 83% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/EnumTest.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/EnumTest.md index 9d0911aa938..74e7402e140 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/EnumTest.md +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/EnumTest.md @@ -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) diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/FormatTest.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/FormatTest.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/FormatTest.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/FormatTest.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/HasOnlyReadOnly.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/HasOnlyReadOnly.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/HasOnlyReadOnly.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/HasOnlyReadOnly.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/MapTest.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/MapTest.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/MapTest.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/MapTest.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md similarity index 82% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md index 1e3c4f7bfe1..9a9269e3cb7 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md @@ -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) diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/Model200Response.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Model200Response.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/Model200Response.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Model200Response.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/ModelList.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ModelList.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/ModelList.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ModelList.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/ModelReturn.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ModelReturn.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/ModelReturn.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ModelReturn.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/Name.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Name.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/Name.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Name.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/NumberOnly.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/NumberOnly.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/NumberOnly.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/NumberOnly.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/Order.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Order.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/Order.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Order.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/OuterComposite.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/OuterComposite.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/OuterComposite.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/OuterComposite.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/OuterEnum.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/OuterEnum.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/OuterEnum.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/OuterEnum.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Pet.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Pet.md similarity index 73% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Pet.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Pet.md index 4525fe7d776..ddf1a732f4c 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Pet.md +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Pet.md @@ -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) diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/ReadOnlyFirst.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ReadOnlyFirst.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/ReadOnlyFirst.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ReadOnlyFirst.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/SpecialModelName.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/SpecialModelName.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/SpecialModelName.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/SpecialModelName.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/Tag.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Tag.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/Tag.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Tag.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/User.md b/samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/User.md similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/User.md rename to samples/client/petstore/php/OpenAPIToolsClient-php/docs/Model/User.md diff --git a/samples/client/petstore/php/SwaggerClient-php/git_push.sh b/samples/client/petstore/php/OpenAPIToolsClient-php/git_push.sh similarity index 94% rename from samples/client/petstore/php/SwaggerClient-php/git_push.sh rename to samples/client/petstore/php/OpenAPIToolsClient-php/git_push.sh index 160f6f21399..20057f67ade 100644 --- a/samples/client/petstore/php/SwaggerClient-php/git_push.sh +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/git_push.sh @@ -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 diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Api/AnotherFakeApi.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/AnotherFakeApi.php similarity index 86% rename from samples/client/petstore/php/SwaggerClient-php/lib/Api/AnotherFakeApi.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/AnotherFakeApi.php index dd3f6cb90af..369b2bd5255 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Api/AnotherFakeApi.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/AnotherFakeApi.php @@ -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 diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Api/FakeApi.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/FakeApi.php similarity index 95% rename from samples/client/petstore/php/SwaggerClient-php/lib/Api/FakeApi.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/FakeApi.php index bc6e671a86e..f404ba21f27 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Api/FakeApi.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/FakeApi.php @@ -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) */ diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Api/FakeClassnameTags123Api.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/FakeClassnameTags123Api.php similarity index 86% rename from samples/client/petstore/php/SwaggerClient-php/lib/Api/FakeClassnameTags123Api.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/FakeClassnameTags123Api.php index fefc5ee2988..dd56bbb13f8 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Api/FakeClassnameTags123Api.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/FakeClassnameTags123Api.php @@ -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 diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/PetApi.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/PetApi.php similarity index 94% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/PetApi.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/PetApi.php index f2faa30fb33..3fe71a35c32 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/PetApi.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/PetApi.php @@ -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 diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Api/StoreApi.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/StoreApi.php similarity index 93% rename from samples/client/petstore/php/SwaggerClient-php/lib/Api/StoreApi.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/StoreApi.php index a2bb248602e..91ee6930198 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Api/StoreApi.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/StoreApi.php @@ -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 diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Api/UserApi.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/UserApi.php similarity index 94% rename from samples/client/petstore/php/SwaggerClient-php/lib/Api/UserApi.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/UserApi.php index fb7da80e0d6..4e84ee357e2 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Api/UserApi.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Api/UserApi.php @@ -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 diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/ApiException.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/ApiException.php similarity index 82% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/ApiException.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/ApiException.php index b0825e46f6b..0182d81fde3 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/ApiException.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/ApiException.php @@ -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 { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Configuration.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Configuration.php similarity index 92% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Configuration.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Configuration.php index 2ce3e63b8a9..4969573d9e8 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Configuration.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Configuration.php @@ -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; diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/HeaderSelector.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/HeaderSelector.php similarity index 82% rename from samples/client/petstore/php/SwaggerClient-php/lib/HeaderSelector.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/HeaderSelector.php index e0edecf9f5c..ccf4b8912b4 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/HeaderSelector.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/HeaderSelector.php @@ -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 { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/AdditionalPropertiesClass.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/AdditionalPropertiesClass.php similarity index 87% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/AdditionalPropertiesClass.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/AdditionalPropertiesClass.php index 0a3d060c15d..32a6f6b3208 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/AdditionalPropertiesClass.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/AdditionalPropertiesClass.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Animal.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Animal.php similarity index 86% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/Animal.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Animal.php index cd4f95057e7..ba424499bf0 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Animal.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Animal.php @@ -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; } /** diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/AnimalFarm.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/AnimalFarm.php similarity index 84% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/AnimalFarm.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/AnimalFarm.php index cf19f89a20f..b19332fd40e 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/AnimalFarm.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/AnimalFarm.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ApiResponse.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ApiResponse.php similarity index 88% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/ApiResponse.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ApiResponse.php index a2bc2248c31..1c662066448 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ApiResponse.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ApiResponse.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php similarity index 86% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php index 26534fa8b3b..c3eb8cba24f 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ArrayOfNumberOnly.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayOfNumberOnly.php similarity index 86% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ArrayOfNumberOnly.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayOfNumberOnly.php index 1990b26c791..bc8b8450ef5 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ArrayOfNumberOnly.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayOfNumberOnly.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ArrayTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayTest.php similarity index 86% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ArrayTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayTest.php index b6d7573af44..6d328529a02 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ArrayTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayTest.php @@ -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 */ diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Capitalization.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Capitalization.php similarity index 91% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Capitalization.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Capitalization.php index 72141aa7212..c9007667d10 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Capitalization.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Capitalization.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Cat.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Cat.php similarity index 85% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/Cat.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Cat.php index 65b9b627b2c..b7f8ab8611f 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Cat.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Cat.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Category.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Category.php similarity index 86% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/Category.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Category.php index a9df5010b9a..3dea05dab4c 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Category.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Category.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ClassModel.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ClassModel.php similarity index 85% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/ClassModel.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ClassModel.php index 5f478671bff..357c13ea244 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ClassModel.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ClassModel.php @@ -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 \"_class\" 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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Client.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Client.php similarity index 85% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Client.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Client.php index d5e9af6025b..c3f19fe0ce8 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Client.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Client.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Dog.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Dog.php similarity index 84% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Dog.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Dog.php index c0d73172f12..e2da68f800c 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Dog.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Dog.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumArrays.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumArrays.php similarity index 90% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumArrays.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumArrays.php index f68c7de4b40..d77fece148b 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumArrays.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumArrays.php @@ -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 = '>='; diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumClass.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumClass.php similarity index 59% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumClass.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumClass.php index 6975bc6c807..c24133ffc52 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumClass.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumClass.php @@ -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 { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/EnumTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumTest.php similarity index 92% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/EnumTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumTest.php index 7bc0ceaa9f7..7bc42cd9301 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/EnumTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumTest.php @@ -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 */ diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/FormatTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/FormatTest.php similarity index 95% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/FormatTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/FormatTest.php index 1adb5a5b43d..7be86c193e6 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/FormatTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/FormatTest.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/HasOnlyReadOnly.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/HasOnlyReadOnly.php similarity index 86% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/HasOnlyReadOnly.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/HasOnlyReadOnly.php index f50d3875d24..7c1b3839b4c 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/HasOnlyReadOnly.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/HasOnlyReadOnly.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/MapTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/MapTest.php similarity index 89% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/MapTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/MapTest.php index 3777bcfa677..6e0ca85c1c7 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/MapTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/MapTest.php @@ -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'; diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php similarity index 85% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php index 377c58c3e32..15af0b38c26 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php @@ -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 */ diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Model200Response.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Model200Response.php similarity index 87% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Model200Response.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Model200Response.php index a1feed42400..7254142cd8c 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Model200Response.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Model200Response.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ModelInterface.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelInterface.php similarity index 74% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ModelInterface.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelInterface.php index 18fcdeafbe9..e50c042902a 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ModelInterface.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelInterface.php @@ -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 diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ModelList.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelList.php similarity index 86% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ModelList.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelList.php index 5bd547e1668..79488ae7a89 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ModelList.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelList.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ModelReturn.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelReturn.php similarity index 85% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ModelReturn.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelReturn.php index c9ba0e51311..a9c6318b365 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ModelReturn.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelReturn.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Name.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Name.php similarity index 89% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/Name.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Name.php index 05b0067efcd..f2de0c9baa6 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Name.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Name.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/NumberOnly.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/NumberOnly.php similarity index 86% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/NumberOnly.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/NumberOnly.php index 89c766034c0..5e524d4c2b6 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/NumberOnly.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/NumberOnly.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Order.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Order.php similarity index 91% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Order.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Order.php index c2a0c22bbaf..96e5707628f 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Order.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Order.php @@ -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'; diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/OuterComposite.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/OuterComposite.php similarity index 88% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/OuterComposite.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/OuterComposite.php index 306f917d0c1..b42d132e8c0 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/OuterComposite.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/OuterComposite.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/OuterEnum.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/OuterEnum.php similarity index 61% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/OuterEnum.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/OuterEnum.php index fa8d60be809..70f1f4e7f37 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/OuterEnum.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/OuterEnum.php @@ -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 { diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Pet.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Pet.php similarity index 88% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/Pet.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Pet.php index acb957ac9cb..83936aeaa12 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Pet.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Pet.php @@ -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 */ diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ReadOnlyFirst.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ReadOnlyFirst.php similarity index 86% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ReadOnlyFirst.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ReadOnlyFirst.php index 43364888a37..69177e3c3e9 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ReadOnlyFirst.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ReadOnlyFirst.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/SpecialModelName.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/SpecialModelName.php similarity index 86% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/SpecialModelName.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/SpecialModelName.php index d69e6273eb5..07019d19442 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/SpecialModelName.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/SpecialModelName.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Tag.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Tag.php similarity index 86% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Tag.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Tag.php index cb04b9bc8f7..263d80afaf9 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Tag.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Tag.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/User.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/User.php similarity index 91% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/User.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/User.php index 1e6f4d75deb..d7fa2560aff 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/User.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/Model/User.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/ObjectSerializer.php b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/ObjectSerializer.php similarity index 87% rename from samples/client/petstore/php/SwaggerClient-php/lib/ObjectSerializer.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/lib/ObjectSerializer.php index cbc97d37d7a..1bc1b474e11 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/ObjectSerializer.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/lib/ObjectSerializer.php @@ -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]})) { diff --git a/samples/client/petstore/php/SwaggerClient-php/phpunit.xml.dist b/samples/client/petstore/php/OpenAPIToolsClient-php/phpunit.xml.dist similarity index 100% rename from samples/client/petstore/php/SwaggerClient-php/phpunit.xml.dist rename to samples/client/petstore/php/OpenAPIToolsClient-php/phpunit.xml.dist diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/AnotherFakeApiTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/AnotherFakeApiTest.php similarity index 64% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/AnotherFakeApiTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/AnotherFakeApiTest.php index f07a9b07b6d..55b9f51b30e 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/AnotherFakeApiTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/AnotherFakeApiTest.php @@ -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 { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Api/FakeApiTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/FakeApiTest.php similarity index 81% rename from samples/client/petstore/php/SwaggerClient-php/test/Api/FakeApiTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/FakeApiTest.php index c8ec3fc8bef..2878ad17c37 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Api/FakeApiTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/FakeApiTest.php @@ -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 { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Api/FakeClassnameTags123ApiTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/FakeClassnameTags123ApiTest.php similarity index 65% rename from samples/client/petstore/php/SwaggerClient-php/test/Api/FakeClassnameTags123ApiTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/FakeClassnameTags123ApiTest.php index 0e09ee4f7fa..2eebb0e9d83 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Api/FakeClassnameTags123ApiTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/FakeClassnameTags123ApiTest.php @@ -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 { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/PetApiTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/PetApiTest.php similarity index 77% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/PetApiTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/PetApiTest.php index 5d3417deaf2..cfb18dea8b7 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/PetApiTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/PetApiTest.php @@ -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; /** * PetApiTest 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 PetApiTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/StoreApiTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/StoreApiTest.php similarity index 71% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/StoreApiTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/StoreApiTest.php index 93bb9118da3..085c0feff45 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/StoreApiTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/StoreApiTest.php @@ -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; /** * StoreApiTest 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 StoreApiTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/UserApiTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/UserApiTest.php similarity index 78% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/UserApiTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/UserApiTest.php index 695556daf40..37c1dbb6e89 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/UserApiTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Api/UserApiTest.php @@ -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; /** * UserApiTest 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 UserApiTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/AdditionalPropertiesClassTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/AdditionalPropertiesClassTest.php similarity index 73% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/AdditionalPropertiesClassTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/AdditionalPropertiesClassTest.php index 06d71fb8e96..199f22b62f5 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/AdditionalPropertiesClassTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/AdditionalPropertiesClassTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * AdditionalPropertiesClassTest Class Doc Comment * * @category Class * @description AdditionalPropertiesClass - * @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 AdditionalPropertiesClassTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/AnimalFarmTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/AnimalFarmTest.php similarity index 67% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/AnimalFarmTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/AnimalFarmTest.php index 9ecad0f7514..cc1f6ae66c5 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/AnimalFarmTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/AnimalFarmTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * AnimalFarmTest Class Doc Comment * * @category Class * @description AnimalFarm - * @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 AnimalFarmTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/AnimalTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/AnimalTest.php similarity index 71% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/AnimalTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/AnimalTest.php index e97240870af..9ab91cb2f8f 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/AnimalTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/AnimalTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * AnimalTest Class Doc Comment * * @category Class * @description Animal - * @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 AnimalTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ApiResponseTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ApiResponseTest.php similarity index 72% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ApiResponseTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ApiResponseTest.php index 8c6d6ca4703..fc86eed4679 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ApiResponseTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ApiResponseTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ApiResponseTest Class Doc Comment * * @category Class * @description ApiResponse - * @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 ApiResponseTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php similarity index 71% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php index c770b32bb78..5b62cd90fa0 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ArrayOfArrayOfNumberOnlyTest Class Doc Comment * * @category Class * @description ArrayOfArrayOfNumberOnly - * @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 ArrayOfArrayOfNumberOnlyTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfNumberOnlyTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayOfNumberOnlyTest.php similarity index 70% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfNumberOnlyTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayOfNumberOnlyTest.php index 2fa5418c281..f9a7cbdc54a 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfNumberOnlyTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayOfNumberOnlyTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ArrayOfNumberOnlyTest Class Doc Comment * * @category Class * @description ArrayOfNumberOnly - * @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 ArrayOfNumberOnlyTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayTestTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayTestTest.php similarity index 73% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayTestTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayTestTest.php index 29842974408..c569a52bf45 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayTestTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayTestTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ArrayTestTest Class Doc Comment * * @category Class * @description ArrayTest - * @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 ArrayTestTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/CapitalizationTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/CapitalizationTest.php similarity index 77% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/CapitalizationTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/CapitalizationTest.php index e583abe7bd0..bb3db681c1c 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/CapitalizationTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/CapitalizationTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * CapitalizationTest Class Doc Comment * * @category Class * @description Capitalization - * @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 CapitalizationTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/CatTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/CatTest.php similarity index 69% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/CatTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/CatTest.php index 58bea4feb6e..07f52e940f8 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/CatTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/CatTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * CatTest Class Doc Comment * * @category Class * @description Cat - * @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 CatTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/CategoryTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/CategoryTest.php similarity index 71% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/CategoryTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/CategoryTest.php index df42807ba4a..ba2b709f249 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/CategoryTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/CategoryTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * CategoryTest Class Doc Comment * * @category Class * @description Category - * @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 CategoryTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/ClassModelTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ClassModelTest.php similarity index 70% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/ClassModelTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ClassModelTest.php index 43fc6aa6054..237966f726f 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/ClassModelTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ClassModelTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ClassModelTest Class Doc Comment * * @category Class * @description Model for testing model with \"_class\" 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 ClassModelTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ClientTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ClientTest.php similarity index 69% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ClientTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ClientTest.php index 93f76826f4f..ec47c6ce6f6 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ClientTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ClientTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ClientTest Class Doc Comment * * @category Class * @description Client - * @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 ClientTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/DogTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/DogTest.php similarity index 68% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/DogTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/DogTest.php index 05124733d3e..50220d980e2 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/DogTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/DogTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * DogTest Class Doc Comment * * @category Class * @description Dog - * @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 DogTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/EnumArraysTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumArraysTest.php similarity index 71% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/EnumArraysTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumArraysTest.php index 4fbe237a97f..8f7ed180491 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/EnumArraysTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumArraysTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * EnumArraysTest Class Doc Comment * * @category Class * @description EnumArrays - * @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 EnumArraysTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/EnumClassTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumClassTest.php similarity index 67% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/EnumClassTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumClassTest.php index f988f76d30a..9e1b043e124 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/EnumClassTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumClassTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * EnumClassTest Class Doc Comment * * @category Class * @description EnumClass - * @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 EnumClassTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/EnumTestTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumTestTest.php similarity index 76% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/EnumTestTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumTestTest.php index f6ee42a4e70..50ef0a6bd71 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/EnumTestTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumTestTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * EnumTestTest Class Doc Comment * * @category Class * @description EnumTest - * @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 EnumTestTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/FormatTestTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/FormatTestTest.php similarity index 82% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/FormatTestTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/FormatTestTest.php index 68382e3b866..f37cfac516b 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/FormatTestTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/FormatTestTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * FormatTestTest Class Doc Comment * * @category Class * @description FormatTest - * @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 FormatTestTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/HasOnlyReadOnlyTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/HasOnlyReadOnlyTest.php similarity index 71% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/HasOnlyReadOnlyTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/HasOnlyReadOnlyTest.php index a00be17b016..f3ca923e7d8 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/HasOnlyReadOnlyTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/HasOnlyReadOnlyTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * HasOnlyReadOnlyTest Class Doc Comment * * @category Class * @description HasOnlyReadOnly - * @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 HasOnlyReadOnlyTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/MapTestTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/MapTestTest.php similarity index 71% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/MapTestTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/MapTestTest.php index 9184a75fe97..368065c2043 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/MapTestTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/MapTestTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * MapTestTest Class Doc Comment * * @category Class * @description MapTest - * @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 MapTestTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php similarity index 75% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php index 4d7b4cfd101..3cffcfd7605 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * MixedPropertiesAndAdditionalPropertiesClassTest Class Doc Comment * * @category Class * @description MixedPropertiesAndAdditionalPropertiesClass - * @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 MixedPropertiesAndAdditionalPropertiesClassTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/Model200ResponseTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/Model200ResponseTest.php similarity index 72% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/Model200ResponseTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/Model200ResponseTest.php index f2d023cc05c..cf8343f9c33 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/Model200ResponseTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/Model200ResponseTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * Model200ResponseTest 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 Model200ResponseTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ModelListTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ModelListTest.php similarity index 69% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ModelListTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ModelListTest.php index c43cb912d25..56ac1795ae0 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ModelListTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ModelListTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ModelListTest Class Doc Comment * * @category Class * @description ModelList - * @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 ModelListTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/ModelReturnTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ModelReturnTest.php similarity index 70% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/ModelReturnTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ModelReturnTest.php index 61e83854146..a65d94acaaa 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/ModelReturnTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ModelReturnTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ModelReturnTest 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 ModelReturnTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/NameTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/NameTest.php similarity index 74% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/NameTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/NameTest.php index 0028a36558c..80ccf50b02d 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/NameTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/NameTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * NameTest 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 NameTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/NumberOnlyTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/NumberOnlyTest.php similarity index 69% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/NumberOnlyTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/NumberOnlyTest.php index c7fb1e2fb89..07254e52e54 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/NumberOnlyTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/NumberOnlyTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * NumberOnlyTest Class Doc Comment * * @category Class * @description NumberOnly - * @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 NumberOnlyTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/OrderTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/OrderTest.php similarity index 76% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/OrderTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/OrderTest.php index 12285b89018..01540577900 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/OrderTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/OrderTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * OrderTest Class Doc Comment * * @category Class * @description Order - * @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 OrderTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/OuterCompositeTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/OuterCompositeTest.php similarity index 73% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/OuterCompositeTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/OuterCompositeTest.php index 4141b243c05..054b7eb2821 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/OuterCompositeTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/OuterCompositeTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * OuterCompositeTest Class Doc Comment * * @category Class * @description OuterComposite - * @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 OuterCompositeTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterEnumTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/OuterEnumTest.php similarity index 67% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/OuterEnumTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/OuterEnumTest.php index d6baf2418c6..21a47577e60 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterEnumTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/OuterEnumTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * OuterEnumTest Class Doc Comment * * @category Class * @description OuterEnum - * @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 OuterEnumTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/PetTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/PetTest.php similarity index 76% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/PetTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/PetTest.php index 27e7e8496a3..3dbaa54db08 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/PetTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/PetTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * PetTest Class Doc Comment * * @category Class * @description Pet - * @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 PetTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ReadOnlyFirstTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ReadOnlyFirstTest.php similarity index 71% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ReadOnlyFirstTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ReadOnlyFirstTest.php index 798f2ef6c63..6c270449083 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ReadOnlyFirstTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/ReadOnlyFirstTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ReadOnlyFirstTest Class Doc Comment * * @category Class * @description ReadOnlyFirst - * @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 ReadOnlyFirstTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/SpecialModelNameTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/SpecialModelNameTest.php similarity index 70% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/SpecialModelNameTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/SpecialModelNameTest.php index 26b60bfde75..8bca174ccff 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/SpecialModelNameTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/SpecialModelNameTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * SpecialModelNameTest Class Doc Comment * * @category Class * @description SpecialModelName - * @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 SpecialModelNameTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/TagTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/TagTest.php similarity index 70% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/TagTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/TagTest.php index 37a2c976209..bcf9602fbda 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/TagTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/TagTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * TagTest Class Doc Comment * * @category Class * @description Tag - * @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 TagTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/UserTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/UserTest.php similarity index 78% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/UserTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/UserTest.php index 33a3573cebd..3416375fa42 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/UserTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/test/Model/UserTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * UserTest Class Doc Comment * * @category Class * @description User - * @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 UserTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/tests/AsyncTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/tests/AsyncTest.php similarity index 95% rename from samples/client/petstore/php/SwaggerClient-php/tests/AsyncTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/tests/AsyncTest.php index 049869c357d..9f71e55c024 100644 --- a/samples/client/petstore/php/SwaggerClient-php/tests/AsyncTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/tests/AsyncTest.php @@ -1,9 +1,9 @@ assertContains($animal->getClassName(), ['Dog', 'Cat', 'Animal']); - $this->assertInstanceOf('Swagger\Client\Model\Animal', $animal); + $this->assertInstanceOf('OpenAPITools\Client\Model\Animal', $animal); } } } diff --git a/samples/client/petstore/php/SwaggerClient-php/tests/ObjectSerializerTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/tests/ObjectSerializerTest.php similarity index 96% rename from samples/client/petstore/php/SwaggerClient-php/tests/ObjectSerializerTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/tests/ObjectSerializerTest.php index ce147d0e9e2..b405233a83e 100644 --- a/samples/client/petstore/php/SwaggerClient-php/tests/ObjectSerializerTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/tests/ObjectSerializerTest.php @@ -1,6 +1,6 @@ assertInstanceOf('Swagger\Client\Model\Order', $order); + $this->assertInstanceOf('OpenAPITools\Client\Model\Order', $order); $this->assertSame(10, $order->getId()); $this->assertSame(20, $order->getPetId()); $this->assertSame(30, $order->getQuantity()); @@ -82,13 +82,13 @@ ORDER; ORDER; $order = ObjectSerializer::deserialize( json_decode($order_json), - 'Swagger\Client\Model\Order[][]' + 'OpenAPITools\Client\Model\Order[][]' ); $this->assertArrayHasKey(0, $order); $this->assertArrayHasKey(0, $order[0]); $_order = $order[0][0]; - $this->assertInstanceOf('Swagger\Client\Model\Order', $_order); + $this->assertInstanceOf('OpenAPITools\Client\Model\Order', $_order); $this->assertSame(10, $_order->getId()); $this->assertSame(20, $_order->getPetId()); $this->assertSame(30, $_order->getQuantity()); @@ -116,13 +116,13 @@ ORDER; ORDER; $order = ObjectSerializer::deserialize( json_decode($order_json), - 'map[string,map[string,\Swagger\Client\Model\Order]]' + 'map[string,map[string,\OpenAPITools\Client\Model\Order]]' ); $this->assertArrayHasKey('test', $order); $this->assertArrayHasKey('test2', $order['test']); $_order = $order['test']['test2']; - $this->assertInstanceOf('Swagger\Client\Model\Order', $_order); + $this->assertInstanceOf('OpenAPITools\Client\Model\Order', $_order); $this->assertSame(10, $_order->getId()); $this->assertSame(20, $_order->getPetId()); $this->assertSame(30, $_order->getQuantity()); diff --git a/samples/client/petstore/php/SwaggerClient-php/tests/OuterEnumTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/tests/OuterEnumTest.php similarity index 95% rename from samples/client/petstore/php/SwaggerClient-php/tests/OuterEnumTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/tests/OuterEnumTest.php index d7d12d5cbb8..2bfd5ea4ad3 100644 --- a/samples/client/petstore/php/SwaggerClient-php/tests/OuterEnumTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/tests/OuterEnumTest.php @@ -1,9 +1,9 @@ getApiClient()->getConfig()->setApiKey('api_key', '111222333444555'); * // return Pet (inline model) * $response = $pet_api->getPetByIdInObject($pet_id); - * $this->assertInstanceOf('Swagger\Client\Model\InlineResponse200', $response); + * $this->assertInstanceOf('OpenAPITools\Client\Model\InlineResponse200', $response); * $this->assertSame($response->getId(), $pet_id); * $this->assertSame($response->getName(), 'PHP Unit Test'); * $this->assertSame($response->getPhotoUrls()[0], 'http://test_php_unit_test.com'); @@ -289,9 +289,9 @@ class PetApiTest extends \PHPUnit_Framework_TestCase { $new_dog = new Model\Dog; // the object should be an instance of the derived class - $this->assertInstanceOf('Swagger\Client\Model\Dog', $new_dog); + $this->assertInstanceOf('OpenAPITools\Client\Model\Dog', $new_dog); // the object should also be an instance of the parent class - $this->assertInstanceOf('Swagger\Client\Model\Animal', $new_dog); + $this->assertInstanceOf('OpenAPITools\Client\Model\Animal', $new_dog); } // test inheritance constructor is working with data @@ -333,15 +333,15 @@ class PetApiTest extends \PHPUnit_Framework_TestCase // assert we can look up the animals in the farm by array // indices (let's try a random order) - $this->assertInstanceOf('Swagger\Client\Model\Cat', $farm[1]); - $this->assertInstanceOf('Swagger\Client\Model\Dog', $farm[0]); - $this->assertInstanceOf('Swagger\Client\Model\Animal', $farm[2]); + $this->assertInstanceOf('OpenAPITools\Client\Model\Cat', $farm[1]); + $this->assertInstanceOf('OpenAPITools\Client\Model\Dog', $farm[0]); + $this->assertInstanceOf('OpenAPITools\Client\Model\Animal', $farm[2]); // let's try to `foreach` the animals in the farm and let's // try to use the objects we loop through foreach ($farm as $animal) { $this->assertContains($animal->getClassName(), array('Dog', 'Cat', 'Animal')); - $this->assertInstanceOf('Swagger\Client\Model\Animal', $animal); + $this->assertInstanceOf('OpenAPITools\Client\Model\Animal', $animal); } } diff --git a/samples/client/petstore/php/SwaggerClient-php/tests/PetTest.php b/samples/client/petstore/php/OpenAPIToolsClient-php/tests/PetTest.php similarity index 82% rename from samples/client/petstore/php/SwaggerClient-php/tests/PetTest.php rename to samples/client/petstore/php/OpenAPIToolsClient-php/tests/PetTest.php index 60ce604c522..04dff16bf37 100644 --- a/samples/client/petstore/php/SwaggerClient-php/tests/PetTest.php +++ b/samples/client/petstore/php/OpenAPIToolsClient-php/tests/PetTest.php @@ -1,8 +1,8 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation testBodyWithQueryParams - * - * @param \Swagger\Client\Model\User $body body (required) - * @param string $query query (required) - * - * @throws \Swagger\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return void - */ - public function testBodyWithQueryParams($body, $query) - { - $this->testBodyWithQueryParamsWithHttpInfo($body, $query); - } - - /** - * Operation testBodyWithQueryParamsWithHttpInfo - * - * @param \Swagger\Client\Model\User $body (required) - * @param string $query (required) - * - * @throws \Swagger\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) - */ - public function testBodyWithQueryParamsWithHttpInfo($body, $query) - { - $returnType = ''; - $request = $this->testBodyWithQueryParamsRequest($body, $query); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - } - throw $e; - } - } - - /** - * Operation testBodyWithQueryParamsAsync - * - * - * - * @param \Swagger\Client\Model\User $body (required) - * @param string $query (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function testBodyWithQueryParamsAsync($body, $query) - { - return $this->testBodyWithQueryParamsAsyncWithHttpInfo($body, $query) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation testBodyWithQueryParamsAsyncWithHttpInfo - * - * - * - * @param \Swagger\Client\Model\User $body (required) - * @param string $query (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function testBodyWithQueryParamsAsyncWithHttpInfo($body, $query) - { - $returnType = ''; - $request = $this->testBodyWithQueryParamsRequest($body, $query); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'testBodyWithQueryParams' - * - * @param \Swagger\Client\Model\User $body (required) - * @param string $query (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function testBodyWithQueryParamsRequest($body, $query) - { - // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling testBodyWithQueryParams' - ); - } - // verify the required parameter 'query' is set - if ($query === null || (is_array($query) && count($query) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $query when calling testBodyWithQueryParams' - ); - } - - $resourcePath = '/fake/body-with-query-params'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if ($query !== null) { - $queryParams['query'] = ObjectSerializer::toQueryValue($query); - } - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - [] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - [], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - // $_tempBody is the method argument, if present - $httpBody = $_tempBody; - // \stdClass has no __toString(), so we should encode it manually - if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($httpBody); - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Api/Fake_classname_tags123Api.php b/samples/client/petstore/php/SwaggerClient-php/lib/Api/Fake_classname_tags123Api.php deleted file mode 100644 index dd25d6ae6f7..00000000000 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Api/Fake_classname_tags123Api.php +++ /dev/null @@ -1,341 +0,0 @@ -client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation testClassname - * - * To test class name in snake case - * - * @param \Swagger\Client\Model\Client $body client model (required) - * - * @throws \Swagger\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\Client - */ - public function testClassname($body) - { - list($response) = $this->testClassnameWithHttpInfo($body); - return $response; - } - - /** - * Operation testClassnameWithHttpInfo - * - * To test class name in snake case - * - * @param \Swagger\Client\Model\Client $body client model (required) - * - * @throws \Swagger\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\Client, HTTP status code, HTTP response headers (array of strings) - */ - public function testClassnameWithHttpInfo($body) - { - $returnType = '\Swagger\Client\Model\Client'; - $request = $this->testClassnameRequest($body); - - try { - - try { - $response = $this->client->send($request); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Swagger\Client\Model\Client', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation testClassnameAsync - * - * To test class name in snake case - * - * @param \Swagger\Client\Model\Client $body client model (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function testClassnameAsync($body) - { - return $this->testClassnameAsyncWithHttpInfo($body) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation testClassnameAsyncWithHttpInfo - * - * To test class name in snake case - * - * @param \Swagger\Client\Model\Client $body client model (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function testClassnameAsyncWithHttpInfo($body) - { - $returnType = '\Swagger\Client\Model\Client'; - $request = $this->testClassnameRequest($body); - - return $this->client - ->sendAsync($request) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'testClassname' - * - * @param \Swagger\Client\Model\Client $body client model (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function testClassnameRequest($body) - { - // verify the required parameter 'body' is set - if ($body === null) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling testClassname' - ); - } - - $resourcePath = '/fake_classname_test'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - // body params - $_tempBody = null; - if (isset($body)) { - $_tempBody = $body; - } - - if ($multipart) { - $headers= $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - $httpBody = $_tempBody; // $_tempBody is the method argument, if present - - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api_key_query'); - if ($apiKey !== null) { - $queryParams['api_key_query'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PATCH', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - -} diff --git a/samples/client/petstore/php/SwaggerClient-php/petstore b/samples/client/petstore/php/SwaggerClient-php/petstore deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/samples/client/petstore/php/SwaggerClient-php/phpcs-generated-code.xml b/samples/client/petstore/php/SwaggerClient-php/phpcs-generated-code.xml deleted file mode 100644 index af658f0b999..00000000000 --- a/samples/client/petstore/php/SwaggerClient-php/phpcs-generated-code.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - Arnes Drupal code checker - - - - - - * - - - - - * - - diff --git a/samples/client/petstore/php/SwaggerClient-php/pom.xml b/samples/client/petstore/php/SwaggerClient-php/pom.xml deleted file mode 100644 index fa23a1145a8..00000000000 --- a/samples/client/petstore/php/SwaggerClient-php/pom.xml +++ /dev/null @@ -1,60 +0,0 @@ - - 4.0.0 - com.wordnik - PhpPetstoreClientTests - pom - 1.0-SNAPSHOT - PHP Swagger Petstore Client - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.2.1 - - - bundle-install - pre-integration-test - - exec - - - composer - - install - - - - - bundle-test - integration-test - - exec - - - vendor/bin/phpunit - - tests - - - - - - - - - diff --git a/samples/client/petstore/php/swagger_client_profiling.output b/samples/client/petstore/php/swagger_client_profiling.output deleted file mode 100644 index 487dd36f4da..00000000000 --- a/samples/client/petstore/php/swagger_client_profiling.output +++ /dev/null @@ -1,31 +0,0 @@ -0: NEW PETAPI => 0.050940 -0: ADD PET => 0.901768 -0: GET PET => 0.368627 -0: UPDATE PET => 0.366801 -0: DELETE PET => 0.368657 -1: NEW PETAPI => 0.000020 -1: ADD PET => 0.365229 -1: GET PET => 0.366909 -1: UPDATE PET => 0.366458 -1: DELETE PET => 0.365904 -2: NEW PETAPI => 0.000018 -2: ADD PET => 0.367664 -2: GET PET => 0.364671 -2: UPDATE PET => 0.365267 -2: DELETE PET => 0.366162 -3: NEW PETAPI => 0.000018 -3: ADD PET => 0.364907 -3: GET PET => 0.364156 -3: UPDATE PET => 0.366996 -3: DELETE PET => 0.366705 -4: NEW PETAPI => 0.000018 -4: ADD PET => 0.370373 -4: GET PET => 0.365455 -4: UPDATE PET => 0.365915 -4: DELETE PET => 0.368835 -5: NEW PETAPI => 0.000017 -5: ADD PET => 0.367148 -5: GET PET => 0.368994 -5: UPDATE PET => 0.368870 -5: DELETE PET => 0.367270 -6: FINISH diff --git a/samples/client/petstore/php/swagger_client_profiling.php b/samples/client/petstore/php/swagger_client_profiling.php deleted file mode 100644 index 20a3d6b6bf5..00000000000 --- a/samples/client/petstore/php/swagger_client_profiling.php +++ /dev/null @@ -1,80 +0,0 @@ - %f\n", $prof_names[$i], $prof_timing[$i+1]-$prof_timing[$i]); - } - echo "{$prof_names[$size-1]}\n"; -} - -$counter = 5; // run 5 times by default -$new_pet_id = 50001; // ID of pet that needs to be fetched - -for ($x = 0; $x <= $counter; $x++) { - try { - prof_flag("$x: NEW PETAPI"); - $pet_api = new Swagger\Client\Api\PetApi(); - - // ~~~ ADD PET ~~~ - prof_flag("$x: ADD PET"); - // add pet (post json) - $new_pet = new Swagger\Client\Model\Pet; - $new_pet->setId($new_pet_id); - $new_pet->setName("profiler"); - $new_pet->setStatus("available"); - $new_pet->setPhotoUrls(array("http://profiler.com")); - // new tag - $tag= new Swagger\Client\Model\Tag; - $tag->setId($new_pet_id); // use the same id as pet - $tag->setName("profile tag 1"); - // new category - $category = new Swagger\Client\Model\Category; - $category->setId($new_pet_id); // use the same id as pet - $category->setName("profile category 1"); - - $new_pet->setTags(array($tag)); - $new_pet->setCategory($category); - - // add a new pet (model) - $add_response = $pet_api->addPet($new_pet); - - // ~~~ GET PET ~~~ - prof_flag("$x: GET PET"); - $response = $pet_api->getPetById($new_pet_id); - - // ~~~ UPDATE PET WITH FORM ~~~ - prof_flag("$x: UPDATE PET"); - $response = $pet_api->updatePetWithForm($new_pet_id, "new profiler", "sold"); - - // ~~~ DELETE PET ~~~ - prof_flag("$x: DELETE PET"); - $response = $pet_api->deletePet($new_pet_id); - - } catch (Swagger\Client\ApiException $e) { - echo 'Caught exception: ', $e->getMessage(), "\n"; - echo 'HTTP response headers: ', print_r($e->getResponseHeaders(), true), "\n"; - echo 'HTTP response body: ', print_r($e->getResponseBody(), true), "\n"; - echo 'HTTP status code: ', $e->getCode(), "\n"; - } - -} - -prof_flag("$x: FINISH"); -prof_print(); - - diff --git a/samples/client/petstore/php/test.php b/samples/client/petstore/php/test.php deleted file mode 100644 index 8863c653127..00000000000 --- a/samples/client/petstore/php/test.php +++ /dev/null @@ -1,62 +0,0 @@ -setTempFolderPath('/var/tmp/php/'); -// to enable logging -Swagger\Client\Configuration::getDefaultConfiguration()->setDebug(true); -Swagger\Client\Configuration::getDefaultConfiguration()->setDebugFile('/var/tmp/php_debug.log'); - -$petId = 10005; // ID of pet that needs to be fetched -try { - // get pet by id - //$api_client = new Swagger\Client\ApiClient('http://petstore.swagger.io/v2'); - //$api_client->getConfig()->addDefaultHeader("test1", "value1"); - //$pet_api = new Swagger\Client\PetAPI($api_client); - $config = new \Swagger\Client\Configuration(); - $petApi = new Swagger\Client\Api\PetApi(null, $config); - $config->setTempFolderPath('/var/tmp/php/'); - // test default header - //$pet_api->getApiClient()->addDefaultHeader("TEST_API_KEY", "09182sdkanafndsl903"); - // return Pet (model) - $response = $petApi->getPetById($petId); - // to test __toString() - print ($response); - - // add pet (post json) - $newPetId = 10005; - $newPet = new Swagger\Client\Model\Pet; - $newPet->setId($newPetId); - $newPet->setName("PHP Unit Test"); - // new tag - $tag = new Swagger\Client\Model\Tag; - $tag->setId($newPetId); // use the same id as pet - //$tag->name = "test php tag"; - // new category - $category = new Swagger\Client\Model\Category; - $category->setId(10005); // use the same id as pet - //$category->name = "test php category"; - - $newPet->setTags(array($tag)); - $newPet->setCategory($category); - - $petApi = new Swagger\Client\Api\PetApi(null, $config); - // add a new pet (model) - $add_response = $petApi->addPet($newPet); - - // test upload file (should return exception) - $upload_response = $petApi->uploadFile($petId, "test meta", NULL); - -} catch (Swagger\Client\ApiException $e) { - echo 'Caught exception: ', $e->getMessage(), "\n"; - echo 'HTTP response headers: ', print_r($e->getResponseHeaders(), true), "\n"; - echo 'HTTP response body: ', print_r($e->getResponseBody(), true), "\n"; - echo 'HTTP status code: ', $e->getCode(), "\n"; -} diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/.php_cs b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/.php_cs similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/.php_cs rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/.php_cs diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/.travis.yml b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/.travis.yml similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/.travis.yml rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/.travis.yml diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/README.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/README.md similarity index 95% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/README.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/README.md index 99e0a1d0310..53d2a3495e7 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/README.md +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/README.md @@ -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 testSpecialTags($client); diff --git a/samples/client/petstore/php/SwaggerClient-php/composer.json b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/composer.json similarity index 66% rename from samples/client/petstore/php/SwaggerClient-php/composer.json rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/composer.json index 2ebbe805eea..2991dfef929 100644 --- a/samples/client/petstore/php/SwaggerClient-php/composer.json +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/composer.json @@ -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/" } } } diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Api/AnotherFakeApi.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Api/AnotherFakeApi.md similarity index 75% rename from samples/client/petstore/php/SwaggerClient-php/docs/Api/AnotherFakeApi.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Api/AnotherFakeApi.md index bac58af1eed..1de69af3b97 100644 --- a/samples/client/petstore/php/SwaggerClient-php/docs/Api/AnotherFakeApi.md +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Api/AnotherFakeApi.md @@ -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 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 diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Api/FakeApi.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Api/FakeApi.md similarity index 89% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Api/FakeApi.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Api/FakeApi.md index 4fec384741e..d240d29a661 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Api/FakeApi.md +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Api/FakeApi.md @@ -1,4 +1,4 @@ -# Swagger\Client\FakeApi +# OpenAPITools\Client\FakeApi All URIs are relative to *http://petstore.swagger.io:80/v2* @@ -27,7 +27,7 @@ Test serialization of outer boolean types \Swagger\Client\Model\OuterComposite fakeOuterCompositeSerialize($outer_composite) +> \OpenAPITools\Client\Model\OuterComposite fakeOuterCompositeSerialize($outer_composite) @@ -76,12 +76,12 @@ Test serialization of object with outer number type fakeOuterCompositeSerialize($outer_composite); @@ -96,11 +96,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 @@ -125,7 +125,7 @@ Test serialization of outer number types \Swagger\Client\Model\Client testClientModel($client) +> \OpenAPITools\Client\Model\Client testClientModel($client) To test \"client\" model @@ -223,12 +223,12 @@ To test \"client\" model testClientModel($client); @@ -243,11 +243,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 @@ -273,12 +273,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(), @@ -353,7 +353,7 @@ To test enum parameters testInlineAdditionalProperties($UNKNOWN_PARAM_NAME) +> testInlineAdditionalProperties($request_body) test inline additionalProperties @@ -413,15 +413,15 @@ test inline additionalProperties 'request_body_example'); // string | request body try { - $apiInstance->testInlineAdditionalProperties($UNKNOWN_PARAM_NAME); + $apiInstance->testInlineAdditionalProperties($request_body); } catch (Exception $e) { echo 'Exception when calling FakeApi->testInlineAdditionalProperties: ', $e->getMessage(), PHP_EOL; } @@ -432,7 +432,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **UNKNOWN_PARAM_NAME** | [****](../Model/.md)| request body | + **request_body** | [**string**](../Model/string.md)| request body | ### Return type @@ -459,7 +459,7 @@ test json serialization of form data \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 diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Api/PetApi.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Api/PetApi.md similarity index 82% rename from samples/client/petstore/php/SwaggerClient-php/docs/Api/PetApi.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Api/PetApi.md index 6c4fe686522..4b57dd6cece 100644 --- a/samples/client/petstore/php/SwaggerClient-php/docs/Api/PetApi.md +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Api/PetApi.md @@ -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 diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Api/StoreApi.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Api/StoreApi.md similarity index 84% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Api/StoreApi.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Api/StoreApi.md index cff61dfac68..88574f3c507 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Api/StoreApi.md +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Api/StoreApi.md @@ -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 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 \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 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 diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Api/UserApi.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Api/UserApi.md similarity index 87% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Api/UserApi.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Api/UserApi.md index 82bf1f3cbee..65883d5adee 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Api/UserApi.md +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Api/UserApi.md @@ -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. 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 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 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. \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 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 diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/AdditionalPropertiesClass.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/AdditionalPropertiesClass.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/AdditionalPropertiesClass.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/AdditionalPropertiesClass.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Animal.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Animal.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Animal.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Animal.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/AnimalFarm.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/AnimalFarm.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/AnimalFarm.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/AnimalFarm.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/ApiResponse.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ApiResponse.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/ApiResponse.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ApiResponse.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/ArrayOfArrayOfNumberOnly.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ArrayOfArrayOfNumberOnly.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/ArrayOfArrayOfNumberOnly.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ArrayOfArrayOfNumberOnly.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/ArrayOfNumberOnly.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ArrayOfNumberOnly.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/ArrayOfNumberOnly.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ArrayOfNumberOnly.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/ArrayTest.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ArrayTest.md similarity index 79% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/ArrayTest.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ArrayTest.md index f982dc2e4c7..149f459fce3 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/ArrayTest.md +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ArrayTest.md @@ -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) diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Capitalization.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Capitalization.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Capitalization.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Capitalization.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Cat.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Cat.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Cat.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Cat.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Category.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Category.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Category.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Category.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/ClassModel.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ClassModel.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/ClassModel.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ClassModel.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Client.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Client.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Client.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Client.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Dog.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Dog.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Dog.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Dog.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/EnumArrays.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/EnumArrays.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/EnumArrays.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/EnumArrays.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/EnumClass.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/EnumClass.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/EnumClass.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/EnumClass.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/EnumTest.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/EnumTest.md similarity index 83% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/EnumTest.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/EnumTest.md index 9d0911aa938..74e7402e140 100644 --- a/samples/client/petstore/php/SwaggerClient-php/docs/Model/EnumTest.md +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/EnumTest.md @@ -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) diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/FormatTest.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/FormatTest.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/FormatTest.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/FormatTest.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/HasOnlyReadOnly.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/HasOnlyReadOnly.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/HasOnlyReadOnly.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/HasOnlyReadOnly.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/MapTest.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/MapTest.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/MapTest.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/MapTest.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md similarity index 82% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md index 1e3c4f7bfe1..9a9269e3cb7 100644 --- a/samples/client/petstore/php/SwaggerClient-php/docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md @@ -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) diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Model200Response.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Model200Response.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Model200Response.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Model200Response.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/ModelList.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ModelList.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/ModelList.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ModelList.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/ModelReturn.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ModelReturn.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/ModelReturn.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ModelReturn.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Name.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Name.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Name.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Name.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/NumberOnly.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/NumberOnly.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/NumberOnly.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/NumberOnly.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Order.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Order.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Order.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Order.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/OuterComposite.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/OuterComposite.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/OuterComposite.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/OuterComposite.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/OuterEnum.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/OuterEnum.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/OuterEnum.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/OuterEnum.md diff --git a/samples/client/petstore/php/SwaggerClient-php/docs/Model/Pet.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Pet.md similarity index 73% rename from samples/client/petstore/php/SwaggerClient-php/docs/Model/Pet.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Pet.md index 4525fe7d776..ddf1a732f4c 100644 --- a/samples/client/petstore/php/SwaggerClient-php/docs/Model/Pet.md +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Pet.md @@ -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) diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/ReadOnlyFirst.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ReadOnlyFirst.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/ReadOnlyFirst.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/ReadOnlyFirst.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/SpecialModelName.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/SpecialModelName.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/SpecialModelName.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/SpecialModelName.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Tag.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Tag.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/Tag.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/Tag.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/User.md b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/User.md similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/docs/Model/User.md rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/docs/Model/User.md diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/git_push.sh b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/git_push.sh similarity index 94% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/git_push.sh rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/git_push.sh index 160f6f21399..20057f67ade 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/git_push.sh +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/git_push.sh @@ -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 diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/AnotherFakeApi.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/AnotherFakeApi.php similarity index 86% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/AnotherFakeApi.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/AnotherFakeApi.php index dd3f6cb90af..369b2bd5255 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/AnotherFakeApi.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/AnotherFakeApi.php @@ -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 diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/FakeApi.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/FakeApi.php similarity index 94% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/FakeApi.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/FakeApi.php index b4a850aef34..cd6f145156d 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/FakeApi.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/FakeApi.php @@ -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 { @@ -92,7 +92,7 @@ class FakeApi * * @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 */ @@ -107,7 +107,7 @@ class FakeApi * * @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) */ @@ -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) */ @@ -1080,11 +1080,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) { @@ -1097,15 +1097,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 { @@ -1157,7 +1157,7 @@ class FakeApi case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\Client', + '\OpenAPITools\Client\Model\Client', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -1172,7 +1172,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 @@ -1192,14 +1192,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 @@ -1242,7 +1242,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 @@ -1352,7 +1352,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 */ @@ -1381,7 +1381,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) */ @@ -1746,7 +1746,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 */ @@ -1769,7 +1769,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) */ @@ -2021,15 +2021,15 @@ class FakeApi * * test inline additionalProperties * - * @param $UNKNOWN_PARAM_NAME request body (required) + * @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 */ - public function testInlineAdditionalProperties($UNKNOWN_PARAM_NAME) + public function testInlineAdditionalProperties($request_body) { - $this->testInlineAdditionalPropertiesWithHttpInfo($UNKNOWN_PARAM_NAME); + $this->testInlineAdditionalPropertiesWithHttpInfo($request_body); } /** @@ -2037,16 +2037,16 @@ class FakeApi * * test inline additionalProperties * - * @param $UNKNOWN_PARAM_NAME request body (required) + * @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) */ - public function testInlineAdditionalPropertiesWithHttpInfo($UNKNOWN_PARAM_NAME) + public function testInlineAdditionalPropertiesWithHttpInfo($request_body) { $returnType = ''; - $request = $this->testInlineAdditionalPropertiesRequest($UNKNOWN_PARAM_NAME); + $request = $this->testInlineAdditionalPropertiesRequest($request_body); try { $options = $this->createHttpClientOption(); @@ -2090,14 +2090,14 @@ class FakeApi * * test inline additionalProperties * - * @param $UNKNOWN_PARAM_NAME request body (required) + * @param string $request_body request body (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function testInlineAdditionalPropertiesAsync($UNKNOWN_PARAM_NAME) + public function testInlineAdditionalPropertiesAsync($request_body) { - return $this->testInlineAdditionalPropertiesAsyncWithHttpInfo($UNKNOWN_PARAM_NAME) + return $this->testInlineAdditionalPropertiesAsyncWithHttpInfo($request_body) ->then( function ($response) { return $response[0]; @@ -2110,15 +2110,15 @@ class FakeApi * * test inline additionalProperties * - * @param $UNKNOWN_PARAM_NAME request body (required) + * @param string $request_body request body (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function testInlineAdditionalPropertiesAsyncWithHttpInfo($UNKNOWN_PARAM_NAME) + public function testInlineAdditionalPropertiesAsyncWithHttpInfo($request_body) { $returnType = ''; - $request = $this->testInlineAdditionalPropertiesRequest($UNKNOWN_PARAM_NAME); + $request = $this->testInlineAdditionalPropertiesRequest($request_body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2146,17 +2146,17 @@ class FakeApi /** * Create request for operation 'testInlineAdditionalProperties' * - * @param $UNKNOWN_PARAM_NAME request body (required) + * @param string $request_body request body (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function testInlineAdditionalPropertiesRequest($UNKNOWN_PARAM_NAME) + protected function testInlineAdditionalPropertiesRequest($request_body) { - // verify the required parameter 'UNKNOWN_PARAM_NAME' is set - if ($UNKNOWN_PARAM_NAME === null || (is_array($UNKNOWN_PARAM_NAME) && count($UNKNOWN_PARAM_NAME) === 0)) { + // verify the required parameter 'request_body' is set + if ($request_body === null || (is_array($request_body) && count($request_body) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $UNKNOWN_PARAM_NAME when calling testInlineAdditionalProperties' + 'Missing the required parameter $request_body when calling testInlineAdditionalProperties' ); } @@ -2171,8 +2171,8 @@ class FakeApi // body params $_tempBody = null; - if (isset($UNKNOWN_PARAM_NAME)) { - $_tempBody = $UNKNOWN_PARAM_NAME; + if (isset($request_body)) { + $_tempBody = $request_body; } if ($multipart) { @@ -2244,7 +2244,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 */ @@ -2261,7 +2261,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) */ diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/FakeClassnameTags123Api.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/FakeClassnameTags123Api.php similarity index 86% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/FakeClassnameTags123Api.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/FakeClassnameTags123Api.php index fefc5ee2988..dd56bbb13f8 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/FakeClassnameTags123Api.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/FakeClassnameTags123Api.php @@ -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 diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Api/PetApi.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/PetApi.php similarity index 94% rename from samples/client/petstore/php/SwaggerClient-php/lib/Api/PetApi.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/PetApi.php index f2faa30fb33..3fe71a35c32 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Api/PetApi.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/PetApi.php @@ -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 diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/StoreApi.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/StoreApi.php similarity index 93% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/StoreApi.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/StoreApi.php index 664c4bc6baa..a26387f7ecc 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/StoreApi.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/StoreApi.php @@ -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 diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/UserApi.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/UserApi.php similarity index 94% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/UserApi.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/UserApi.php index ab79ae9ae5d..daed5c0a6cd 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Api/UserApi.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Api/UserApi.php @@ -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 diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/ApiException.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/ApiException.php similarity index 82% rename from samples/client/petstore/php/SwaggerClient-php/lib/ApiException.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/ApiException.php index b0825e46f6b..0182d81fde3 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/ApiException.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/ApiException.php @@ -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 { diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Configuration.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Configuration.php similarity index 92% rename from samples/client/petstore/php/SwaggerClient-php/lib/Configuration.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Configuration.php index 2ce3e63b8a9..4969573d9e8 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Configuration.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Configuration.php @@ -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; diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/HeaderSelector.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/HeaderSelector.php similarity index 82% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/HeaderSelector.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/HeaderSelector.php index e0edecf9f5c..ccf4b8912b4 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/HeaderSelector.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/HeaderSelector.php @@ -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 { diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/AdditionalPropertiesClass.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/AdditionalPropertiesClass.php similarity index 87% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/AdditionalPropertiesClass.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/AdditionalPropertiesClass.php index 0a3d060c15d..32a6f6b3208 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/AdditionalPropertiesClass.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/AdditionalPropertiesClass.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Animal.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Animal.php similarity index 86% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Animal.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Animal.php index cd4f95057e7..ba424499bf0 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Animal.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Animal.php @@ -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; } /** diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/AnimalFarm.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/AnimalFarm.php similarity index 84% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/AnimalFarm.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/AnimalFarm.php index cf19f89a20f..b19332fd40e 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/AnimalFarm.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/AnimalFarm.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ApiResponse.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ApiResponse.php similarity index 88% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ApiResponse.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ApiResponse.php index a2bc2248c31..1c662066448 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ApiResponse.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ApiResponse.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php similarity index 86% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php index 26534fa8b3b..c3eb8cba24f 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ArrayOfNumberOnly.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayOfNumberOnly.php similarity index 86% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/ArrayOfNumberOnly.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayOfNumberOnly.php index 1990b26c791..bc8b8450ef5 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ArrayOfNumberOnly.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayOfNumberOnly.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ArrayTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayTest.php similarity index 86% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/ArrayTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayTest.php index b6d7573af44..6d328529a02 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ArrayTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ArrayTest.php @@ -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 */ diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Capitalization.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Capitalization.php similarity index 91% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/Capitalization.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Capitalization.php index 72141aa7212..c9007667d10 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Capitalization.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Capitalization.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Cat.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Cat.php similarity index 85% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Cat.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Cat.php index 65b9b627b2c..b7f8ab8611f 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Cat.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Cat.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Category.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Category.php similarity index 86% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Category.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Category.php index a9df5010b9a..3dea05dab4c 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Category.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Category.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ClassModel.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ClassModel.php similarity index 85% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ClassModel.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ClassModel.php index 5f478671bff..357c13ea244 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/ClassModel.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ClassModel.php @@ -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 \"_class\" 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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Client.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Client.php similarity index 85% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/Client.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Client.php index d5e9af6025b..c3f19fe0ce8 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Client.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Client.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Dog.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Dog.php similarity index 84% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/Dog.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Dog.php index c0d73172f12..e2da68f800c 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Dog.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Dog.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/EnumArrays.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumArrays.php similarity index 90% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/EnumArrays.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumArrays.php index f68c7de4b40..d77fece148b 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/EnumArrays.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumArrays.php @@ -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 = '>='; diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/EnumClass.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumClass.php similarity index 59% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/EnumClass.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumClass.php index 6975bc6c807..c24133ffc52 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/EnumClass.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumClass.php @@ -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 { diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumTest.php similarity index 92% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumTest.php index 7bc0ceaa9f7..7bc42cd9301 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/EnumTest.php @@ -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 */ diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/FormatTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/FormatTest.php similarity index 95% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/FormatTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/FormatTest.php index 21a41af4d5f..2fc4cf27935 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/FormatTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/FormatTest.php @@ -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' => 'int32', '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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/HasOnlyReadOnly.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/HasOnlyReadOnly.php similarity index 86% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/HasOnlyReadOnly.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/HasOnlyReadOnly.php index f50d3875d24..7c1b3839b4c 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/HasOnlyReadOnly.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/HasOnlyReadOnly.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/MapTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/MapTest.php similarity index 89% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/MapTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/MapTest.php index 3777bcfa677..6e0ca85c1c7 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/MapTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/MapTest.php @@ -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'; diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php similarity index 85% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php index 377c58c3e32..15af0b38c26 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php @@ -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 */ diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Model200Response.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Model200Response.php similarity index 87% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/Model200Response.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Model200Response.php index a1feed42400..7254142cd8c 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Model200Response.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Model200Response.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ModelInterface.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelInterface.php similarity index 74% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/ModelInterface.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelInterface.php index 18fcdeafbe9..e50c042902a 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ModelInterface.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelInterface.php @@ -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 diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ModelList.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelList.php similarity index 86% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/ModelList.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelList.php index 5bd547e1668..79488ae7a89 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ModelList.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelList.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ModelReturn.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelReturn.php similarity index 85% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/ModelReturn.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelReturn.php index c9ba0e51311..a9c6318b365 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ModelReturn.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ModelReturn.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Name.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Name.php similarity index 89% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Name.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Name.php index aec86575a87..4a963654d73 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Name.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Name.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/NumberOnly.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/NumberOnly.php similarity index 86% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/NumberOnly.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/NumberOnly.php index 89c766034c0..5e524d4c2b6 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/NumberOnly.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/NumberOnly.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Order.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Order.php similarity index 91% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/Order.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Order.php index c2a0c22bbaf..96e5707628f 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Order.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Order.php @@ -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'; diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/OuterComposite.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/OuterComposite.php similarity index 88% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/OuterComposite.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/OuterComposite.php index 306f917d0c1..b42d132e8c0 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/OuterComposite.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/OuterComposite.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/OuterEnum.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/OuterEnum.php similarity index 61% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/OuterEnum.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/OuterEnum.php index fa8d60be809..70f1f4e7f37 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/OuterEnum.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/OuterEnum.php @@ -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 { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Pet.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Pet.php similarity index 88% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Pet.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Pet.php index acb957ac9cb..83936aeaa12 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Pet.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Pet.php @@ -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 */ diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ReadOnlyFirst.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ReadOnlyFirst.php similarity index 86% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/ReadOnlyFirst.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ReadOnlyFirst.php index 43364888a37..69177e3c3e9 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/ReadOnlyFirst.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/ReadOnlyFirst.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/SpecialModelName.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/SpecialModelName.php similarity index 86% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/SpecialModelName.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/SpecialModelName.php index b98af8809c0..9694c1e4f3f 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/SpecialModelName.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/SpecialModelName.php @@ -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; } diff --git a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Tag.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Tag.php similarity index 86% rename from samples/client/petstore/php/SwaggerClient-php/lib/Model/Tag.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Tag.php index cb04b9bc8f7..263d80afaf9 100644 --- a/samples/client/petstore/php/SwaggerClient-php/lib/Model/Tag.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/Tag.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/User.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/User.php similarity index 91% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/User.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/User.php index 1e6f4d75deb..d7fa2560aff 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/User.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/Model/User.php @@ -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; } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/ObjectSerializer.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/ObjectSerializer.php similarity index 87% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/lib/ObjectSerializer.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/ObjectSerializer.php index cbc97d37d7a..1bc1b474e11 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/ObjectSerializer.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/lib/ObjectSerializer.php @@ -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]})) { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/phpunit.xml.dist b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/phpunit.xml.dist similarity index 100% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/phpunit.xml.dist rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/phpunit.xml.dist diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Api/AnotherFakeApiTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/AnotherFakeApiTest.php similarity index 64% rename from samples/client/petstore/php/SwaggerClient-php/test/Api/AnotherFakeApiTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/AnotherFakeApiTest.php index f07a9b07b6d..55b9f51b30e 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Api/AnotherFakeApiTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/AnotherFakeApiTest.php @@ -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 { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/FakeApiTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/FakeApiTest.php similarity index 80% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/FakeApiTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/FakeApiTest.php index 80c2be3c744..2be4c529c77 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/FakeApiTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/FakeApiTest.php @@ -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 { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/FakeClassnameTags123ApiTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/FakeClassnameTags123ApiTest.php similarity index 65% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/FakeClassnameTags123ApiTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/FakeClassnameTags123ApiTest.php index 0e09ee4f7fa..2eebb0e9d83 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Api/FakeClassnameTags123ApiTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/FakeClassnameTags123ApiTest.php @@ -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 { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Api/PetApiTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/PetApiTest.php similarity index 77% rename from samples/client/petstore/php/SwaggerClient-php/test/Api/PetApiTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/PetApiTest.php index 5d3417deaf2..cfb18dea8b7 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Api/PetApiTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/PetApiTest.php @@ -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; /** * PetApiTest 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 PetApiTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Api/StoreApiTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/StoreApiTest.php similarity index 71% rename from samples/client/petstore/php/SwaggerClient-php/test/Api/StoreApiTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/StoreApiTest.php index 93bb9118da3..085c0feff45 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Api/StoreApiTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/StoreApiTest.php @@ -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; /** * StoreApiTest 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 StoreApiTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Api/UserApiTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/UserApiTest.php similarity index 78% rename from samples/client/petstore/php/SwaggerClient-php/test/Api/UserApiTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/UserApiTest.php index 695556daf40..37c1dbb6e89 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Api/UserApiTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Api/UserApiTest.php @@ -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; /** * UserApiTest 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 UserApiTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/AdditionalPropertiesClassTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/AdditionalPropertiesClassTest.php similarity index 73% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/AdditionalPropertiesClassTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/AdditionalPropertiesClassTest.php index 06d71fb8e96..199f22b62f5 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/AdditionalPropertiesClassTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/AdditionalPropertiesClassTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * AdditionalPropertiesClassTest Class Doc Comment * * @category Class * @description AdditionalPropertiesClass - * @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 AdditionalPropertiesClassTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/AnimalFarmTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/AnimalFarmTest.php similarity index 67% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/AnimalFarmTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/AnimalFarmTest.php index 9ecad0f7514..cc1f6ae66c5 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/AnimalFarmTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/AnimalFarmTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * AnimalFarmTest Class Doc Comment * * @category Class * @description AnimalFarm - * @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 AnimalFarmTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/AnimalTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/AnimalTest.php similarity index 71% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/AnimalTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/AnimalTest.php index e97240870af..9ab91cb2f8f 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/AnimalTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/AnimalTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * AnimalTest Class Doc Comment * * @category Class * @description Animal - * @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 AnimalTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/ApiResponseTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ApiResponseTest.php similarity index 72% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/ApiResponseTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ApiResponseTest.php index 8c6d6ca4703..fc86eed4679 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/ApiResponseTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ApiResponseTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ApiResponseTest Class Doc Comment * * @category Class * @description ApiResponse - * @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 ApiResponseTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php similarity index 71% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php index c770b32bb78..5b62cd90fa0 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayOfArrayOfNumberOnlyTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ArrayOfArrayOfNumberOnlyTest Class Doc Comment * * @category Class * @description ArrayOfArrayOfNumberOnly - * @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 ArrayOfArrayOfNumberOnlyTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfNumberOnlyTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayOfNumberOnlyTest.php similarity index 70% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfNumberOnlyTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayOfNumberOnlyTest.php index 2fa5418c281..f9a7cbdc54a 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/ArrayOfNumberOnlyTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayOfNumberOnlyTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ArrayOfNumberOnlyTest Class Doc Comment * * @category Class * @description ArrayOfNumberOnly - * @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 ArrayOfNumberOnlyTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ArrayTestTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayTestTest.php similarity index 73% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ArrayTestTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayTestTest.php index 29842974408..c569a52bf45 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ArrayTestTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ArrayTestTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ArrayTestTest Class Doc Comment * * @category Class * @description ArrayTest - * @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 ArrayTestTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/CapitalizationTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/CapitalizationTest.php similarity index 77% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/CapitalizationTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/CapitalizationTest.php index e583abe7bd0..bb3db681c1c 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/CapitalizationTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/CapitalizationTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * CapitalizationTest Class Doc Comment * * @category Class * @description Capitalization - * @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 CapitalizationTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/CatTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/CatTest.php similarity index 69% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/CatTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/CatTest.php index 58bea4feb6e..07f52e940f8 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/CatTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/CatTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * CatTest Class Doc Comment * * @category Class * @description Cat - * @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 CatTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/CategoryTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/CategoryTest.php similarity index 71% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/CategoryTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/CategoryTest.php index df42807ba4a..ba2b709f249 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/CategoryTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/CategoryTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * CategoryTest Class Doc Comment * * @category Class * @description Category - * @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 CategoryTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ClassModelTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ClassModelTest.php similarity index 70% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ClassModelTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ClassModelTest.php index 43fc6aa6054..237966f726f 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ClassModelTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ClassModelTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ClassModelTest Class Doc Comment * * @category Class * @description Model for testing model with \"_class\" 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 ClassModelTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/ClientTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ClientTest.php similarity index 69% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/ClientTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ClientTest.php index 93f76826f4f..ec47c6ce6f6 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/ClientTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ClientTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ClientTest Class Doc Comment * * @category Class * @description Client - * @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 ClientTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/DogTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/DogTest.php similarity index 68% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/DogTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/DogTest.php index 05124733d3e..50220d980e2 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/DogTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/DogTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * DogTest Class Doc Comment * * @category Class * @description Dog - * @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 DogTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/EnumArraysTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumArraysTest.php similarity index 71% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/EnumArraysTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumArraysTest.php index 4fbe237a97f..8f7ed180491 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/EnumArraysTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumArraysTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * EnumArraysTest Class Doc Comment * * @category Class * @description EnumArrays - * @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 EnumArraysTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/EnumClassTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumClassTest.php similarity index 67% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/EnumClassTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumClassTest.php index f988f76d30a..9e1b043e124 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/EnumClassTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumClassTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * EnumClassTest Class Doc Comment * * @category Class * @description EnumClass - * @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 EnumClassTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/EnumTestTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumTestTest.php similarity index 76% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/EnumTestTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumTestTest.php index f6ee42a4e70..50ef0a6bd71 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/EnumTestTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/EnumTestTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * EnumTestTest Class Doc Comment * * @category Class * @description EnumTest - * @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 EnumTestTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/FormatTestTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/FormatTestTest.php similarity index 82% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/FormatTestTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/FormatTestTest.php index 68382e3b866..f37cfac516b 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/FormatTestTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/FormatTestTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * FormatTestTest Class Doc Comment * * @category Class * @description FormatTest - * @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 FormatTestTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/HasOnlyReadOnlyTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/HasOnlyReadOnlyTest.php similarity index 71% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/HasOnlyReadOnlyTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/HasOnlyReadOnlyTest.php index a00be17b016..f3ca923e7d8 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/HasOnlyReadOnlyTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/HasOnlyReadOnlyTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * HasOnlyReadOnlyTest Class Doc Comment * * @category Class * @description HasOnlyReadOnly - * @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 HasOnlyReadOnlyTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/MapTestTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/MapTestTest.php similarity index 71% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/MapTestTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/MapTestTest.php index 9184a75fe97..368065c2043 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/MapTestTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/MapTestTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * MapTestTest Class Doc Comment * * @category Class * @description MapTest - * @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 MapTestTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php similarity index 75% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php index 4d7b4cfd101..3cffcfd7605 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/MixedPropertiesAndAdditionalPropertiesClassTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * MixedPropertiesAndAdditionalPropertiesClassTest Class Doc Comment * * @category Class * @description MixedPropertiesAndAdditionalPropertiesClass - * @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 MixedPropertiesAndAdditionalPropertiesClassTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/Model200ResponseTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/Model200ResponseTest.php similarity index 72% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/Model200ResponseTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/Model200ResponseTest.php index f2d023cc05c..cf8343f9c33 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/Model200ResponseTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/Model200ResponseTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * Model200ResponseTest 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 Model200ResponseTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/ModelListTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ModelListTest.php similarity index 69% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/ModelListTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ModelListTest.php index c43cb912d25..56ac1795ae0 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/ModelListTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ModelListTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ModelListTest Class Doc Comment * * @category Class * @description ModelList - * @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 ModelListTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ModelReturnTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ModelReturnTest.php similarity index 70% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ModelReturnTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ModelReturnTest.php index 61e83854146..a65d94acaaa 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/ModelReturnTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ModelReturnTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ModelReturnTest 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 ModelReturnTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/NameTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/NameTest.php similarity index 74% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/NameTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/NameTest.php index 0028a36558c..80ccf50b02d 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/NameTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/NameTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * NameTest 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 NameTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/NumberOnlyTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/NumberOnlyTest.php similarity index 69% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/NumberOnlyTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/NumberOnlyTest.php index c7fb1e2fb89..07254e52e54 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/NumberOnlyTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/NumberOnlyTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * NumberOnlyTest Class Doc Comment * * @category Class * @description NumberOnly - * @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 NumberOnlyTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/OrderTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/OrderTest.php similarity index 76% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/OrderTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/OrderTest.php index 12285b89018..01540577900 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/OrderTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/OrderTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * OrderTest Class Doc Comment * * @category Class * @description Order - * @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 OrderTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterCompositeTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/OuterCompositeTest.php similarity index 73% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/OuterCompositeTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/OuterCompositeTest.php index 4141b243c05..054b7eb2821 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/OuterCompositeTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/OuterCompositeTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * OuterCompositeTest Class Doc Comment * * @category Class * @description OuterComposite - * @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 OuterCompositeTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/OuterEnumTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/OuterEnumTest.php similarity index 67% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/OuterEnumTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/OuterEnumTest.php index d6baf2418c6..21a47577e60 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/OuterEnumTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/OuterEnumTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * OuterEnumTest Class Doc Comment * * @category Class * @description OuterEnum - * @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 OuterEnumTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/PetTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/PetTest.php similarity index 76% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/PetTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/PetTest.php index 27e7e8496a3..3dbaa54db08 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/PetTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/PetTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * PetTest Class Doc Comment * * @category Class * @description Pet - * @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 PetTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/ReadOnlyFirstTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ReadOnlyFirstTest.php similarity index 71% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/ReadOnlyFirstTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ReadOnlyFirstTest.php index 798f2ef6c63..6c270449083 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/ReadOnlyFirstTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/ReadOnlyFirstTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * ReadOnlyFirstTest Class Doc Comment * * @category Class * @description ReadOnlyFirst - * @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 ReadOnlyFirstTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/SpecialModelNameTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/SpecialModelNameTest.php similarity index 70% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/SpecialModelNameTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/SpecialModelNameTest.php index 26b60bfde75..8bca174ccff 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/SpecialModelNameTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/SpecialModelNameTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * SpecialModelNameTest Class Doc Comment * * @category Class * @description SpecialModelName - * @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 SpecialModelNameTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/client/petstore/php/SwaggerClient-php/test/Model/TagTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/TagTest.php similarity index 70% rename from samples/client/petstore/php/SwaggerClient-php/test/Model/TagTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/TagTest.php index 37a2c976209..bcf9602fbda 100644 --- a/samples/client/petstore/php/SwaggerClient-php/test/Model/TagTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/TagTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * TagTest Class Doc Comment * * @category Class * @description Tag - * @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 TagTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/UserTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/UserTest.php similarity index 78% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/UserTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/UserTest.php index 33a3573cebd..3416375fa42 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/test/Model/UserTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test/Model/UserTest.php @@ -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 * Please update the test case below to test the model. */ -namespace Swagger\Client; +namespace OpenAPITools\Client; /** * UserTest Class Doc Comment * * @category Class * @description User - * @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 UserTest extends \PHPUnit_Framework_TestCase { diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/tests/AsyncTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/tests/AsyncTest.php similarity index 95% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/tests/AsyncTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/tests/AsyncTest.php index 049869c357d..9f71e55c024 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/tests/AsyncTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/tests/AsyncTest.php @@ -1,9 +1,9 @@ assertContains($animal->getClassName(), ['Dog', 'Cat', 'Animal']); - $this->assertInstanceOf('Swagger\Client\Model\Animal', $animal); + $this->assertInstanceOf('OpenAPITools\Client\Model\Animal', $animal); } } } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/tests/ObjectSerializerTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/tests/ObjectSerializerTest.php similarity index 96% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/tests/ObjectSerializerTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/tests/ObjectSerializerTest.php index ce147d0e9e2..b405233a83e 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/tests/ObjectSerializerTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/tests/ObjectSerializerTest.php @@ -1,6 +1,6 @@ assertInstanceOf('Swagger\Client\Model\Order', $order); + $this->assertInstanceOf('OpenAPITools\Client\Model\Order', $order); $this->assertSame(10, $order->getId()); $this->assertSame(20, $order->getPetId()); $this->assertSame(30, $order->getQuantity()); @@ -82,13 +82,13 @@ ORDER; ORDER; $order = ObjectSerializer::deserialize( json_decode($order_json), - 'Swagger\Client\Model\Order[][]' + 'OpenAPITools\Client\Model\Order[][]' ); $this->assertArrayHasKey(0, $order); $this->assertArrayHasKey(0, $order[0]); $_order = $order[0][0]; - $this->assertInstanceOf('Swagger\Client\Model\Order', $_order); + $this->assertInstanceOf('OpenAPITools\Client\Model\Order', $_order); $this->assertSame(10, $_order->getId()); $this->assertSame(20, $_order->getPetId()); $this->assertSame(30, $_order->getQuantity()); @@ -116,13 +116,13 @@ ORDER; ORDER; $order = ObjectSerializer::deserialize( json_decode($order_json), - 'map[string,map[string,\Swagger\Client\Model\Order]]' + 'map[string,map[string,\OpenAPITools\Client\Model\Order]]' ); $this->assertArrayHasKey('test', $order); $this->assertArrayHasKey('test2', $order['test']); $_order = $order['test']['test2']; - $this->assertInstanceOf('Swagger\Client\Model\Order', $_order); + $this->assertInstanceOf('OpenAPITools\Client\Model\Order', $_order); $this->assertSame(10, $_order->getId()); $this->assertSame(20, $_order->getPetId()); $this->assertSame(30, $_order->getQuantity()); diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/tests/OuterEnumTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/tests/OuterEnumTest.php similarity index 95% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/tests/OuterEnumTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/tests/OuterEnumTest.php index d7d12d5cbb8..2bfd5ea4ad3 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/tests/OuterEnumTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/tests/OuterEnumTest.php @@ -1,9 +1,9 @@ getApiClient()->getConfig()->setApiKey('api_key', '111222333444555'); * // return Pet (inline model) * $response = $pet_api->getPetByIdInObject($pet_id); - * $this->assertInstanceOf('Swagger\Client\Model\InlineResponse200', $response); + * $this->assertInstanceOf('OpenAPITools\Client\Model\InlineResponse200', $response); * $this->assertSame($response->getId(), $pet_id); * $this->assertSame($response->getName(), 'PHP Unit Test'); * $this->assertSame($response->getPhotoUrls()[0], 'http://test_php_unit_test.com'); @@ -289,9 +289,9 @@ class PetApiTest extends \PHPUnit_Framework_TestCase { $new_dog = new Model\Dog; // the object should be an instance of the derived class - $this->assertInstanceOf('Swagger\Client\Model\Dog', $new_dog); + $this->assertInstanceOf('OpenAPITools\Client\Model\Dog', $new_dog); // the object should also be an instance of the parent class - $this->assertInstanceOf('Swagger\Client\Model\Animal', $new_dog); + $this->assertInstanceOf('OpenAPITools\Client\Model\Animal', $new_dog); } // test inheritance constructor is working with data @@ -333,15 +333,15 @@ class PetApiTest extends \PHPUnit_Framework_TestCase // assert we can look up the animals in the farm by array // indices (let's try a random order) - $this->assertInstanceOf('Swagger\Client\Model\Cat', $farm[1]); - $this->assertInstanceOf('Swagger\Client\Model\Dog', $farm[0]); - $this->assertInstanceOf('Swagger\Client\Model\Animal', $farm[2]); + $this->assertInstanceOf('OpenAPITools\Client\Model\Cat', $farm[1]); + $this->assertInstanceOf('OpenAPITools\Client\Model\Dog', $farm[0]); + $this->assertInstanceOf('OpenAPITools\Client\Model\Animal', $farm[2]); // let's try to `foreach` the animals in the farm and let's // try to use the objects we loop through foreach ($farm as $animal) { $this->assertContains($animal->getClassName(), array('Dog', 'Cat', 'Animal')); - $this->assertInstanceOf('Swagger\Client\Model\Animal', $animal); + $this->assertInstanceOf('OpenAPITools\Client\Model\Animal', $animal); } } diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/tests/PetTest.php b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/tests/PetTest.php similarity index 82% rename from samples/openapi3/client/petstore/php/SwaggerClient-php/tests/PetTest.php rename to samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/tests/PetTest.php index 60ce604c522..04dff16bf37 100644 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/tests/PetTest.php +++ b/samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/tests/PetTest.php @@ -1,8 +1,8 @@ 'string', - 'status' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'status' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'status' => 'status' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'status' => 'setStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'status' => 'getStatus' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$swaggerModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - $this->container['status'] = isset($data['status']) ? $data['status'] : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name Updated name of the pet - * - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets status - * - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string $status Updated status of the pet - * - * @return $this - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Body1.php b/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Body1.php deleted file mode 100644 index 4f68b229dff..00000000000 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Body1.php +++ /dev/null @@ -1,332 +0,0 @@ - 'string', - 'file' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'additional_metadata' => null, - 'file' => 'binary' - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'additional_metadata' => 'additionalMetadata', - 'file' => 'file' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'additional_metadata' => 'setAdditionalMetadata', - 'file' => 'setFile' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'additional_metadata' => 'getAdditionalMetadata', - 'file' => 'getFile' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$swaggerModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['additional_metadata'] = isset($data['additional_metadata']) ? $data['additional_metadata'] : null; - $this->container['file'] = isset($data['file']) ? $data['file'] : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets additional_metadata - * - * @return string - */ - public function getAdditionalMetadata() - { - return $this->container['additional_metadata']; - } - - /** - * Sets additional_metadata - * - * @param string $additional_metadata Additional data to pass to server - * - * @return $this - */ - public function setAdditionalMetadata($additional_metadata) - { - $this->container['additional_metadata'] = $additional_metadata; - - return $this; - } - - /** - * Gets file - * - * @return string - */ - public function getFile() - { - return $this->container['file']; - } - - /** - * Sets file - * - * @param string $file file to upload - * - * @return $this - */ - public function setFile($file) - { - $this->container['file'] = $file; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Body2.php b/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Body2.php deleted file mode 100644 index 1f53bc2849a..00000000000 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Body2.php +++ /dev/null @@ -1,394 +0,0 @@ - 'string[]', - 'enum_form_string' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'enum_form_string_array' => null, - 'enum_form_string' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'enum_form_string_array' => 'enum_form_string_array', - 'enum_form_string' => 'enum_form_string' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'enum_form_string_array' => 'setEnumFormStringArray', - 'enum_form_string' => 'setEnumFormString' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'enum_form_string_array' => 'getEnumFormStringArray', - 'enum_form_string' => 'getEnumFormString' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$swaggerModelName; - } - - const ENUM_FORM_STRING_ARRAY_GREATER_THAN = '>'; - const ENUM_FORM_STRING_ARRAY_DOLLAR = '$'; - const ENUM_FORM_STRING_ABC = '_abc'; - const ENUM_FORM_STRING_EFG = '-efg'; - const ENUM_FORM_STRING_XYZ = '(xyz)'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getEnumFormStringArrayAllowableValues() - { - return [ - self::ENUM_FORM_STRING_ARRAY_GREATER_THAN, - self::ENUM_FORM_STRING_ARRAY_DOLLAR, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getEnumFormStringAllowableValues() - { - return [ - self::ENUM_FORM_STRING_ABC, - self::ENUM_FORM_STRING_EFG, - self::ENUM_FORM_STRING_XYZ, - ]; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['enum_form_string_array'] = isset($data['enum_form_string_array']) ? $data['enum_form_string_array'] : null; - $this->container['enum_form_string'] = isset($data['enum_form_string']) ? $data['enum_form_string'] : '-efg'; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getEnumFormStringAllowableValues(); - if (!is_null($this->container['enum_form_string']) && !in_array($this->container['enum_form_string'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'enum_form_string', must be one of '%s'", - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - $allowedValues = $this->getEnumFormStringAllowableValues(); - if (!is_null($this->container['enum_form_string']) && !in_array($this->container['enum_form_string'], $allowedValues, true)) { - return false; - } - return true; - } - - - /** - * Gets enum_form_string_array - * - * @return string[] - */ - public function getEnumFormStringArray() - { - return $this->container['enum_form_string_array']; - } - - /** - * Sets enum_form_string_array - * - * @param string[] $enum_form_string_array Form parameter enum test (string array) - * - * @return $this - */ - public function setEnumFormStringArray($enum_form_string_array) - { - $allowedValues = $this->getEnumFormStringArrayAllowableValues(); - if (!is_null($enum_form_string_array) && array_diff($enum_form_string_array, $allowedValues)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'enum_form_string_array', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); - } - $this->container['enum_form_string_array'] = $enum_form_string_array; - - return $this; - } - - /** - * Gets enum_form_string - * - * @return string - */ - public function getEnumFormString() - { - return $this->container['enum_form_string']; - } - - /** - * Sets enum_form_string - * - * @param string $enum_form_string Form parameter enum test (string) - * - * @return $this - */ - public function setEnumFormString($enum_form_string) - { - $allowedValues = $this->getEnumFormStringAllowableValues(); - if (!is_null($enum_form_string) && !in_array($enum_form_string, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'enum_form_string', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); - } - $this->container['enum_form_string'] = $enum_form_string; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Body3.php b/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Body3.php deleted file mode 100644 index cf6c0709d8d..00000000000 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Body3.php +++ /dev/null @@ -1,781 +0,0 @@ - 'int', - 'int32' => 'int', - 'int64' => 'int', - 'number' => 'BigDecimal', - 'float' => 'float', - 'double' => 'double', - 'string' => 'string', - 'pattern_without_delimiter' => 'string', - 'byte' => 'string', - 'binary' => 'string', - 'date' => '\DateTime', - 'date_time' => '\DateTime', - 'password' => 'string', - 'callback' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'integer' => 'int32', - 'int32' => 'int32', - 'int64' => 'int64', - 'number' => null, - 'float' => 'float', - 'double' => 'double', - 'string' => null, - 'pattern_without_delimiter' => null, - 'byte' => 'byte', - 'binary' => 'binary', - 'date' => 'date', - 'date_time' => 'date-time', - 'password' => 'password', - 'callback' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'integer' => 'integer', - 'int32' => 'int32', - 'int64' => 'int64', - 'number' => 'number', - 'float' => 'float', - 'double' => 'double', - 'string' => 'string', - 'pattern_without_delimiter' => 'pattern_without_delimiter', - 'byte' => 'byte', - 'binary' => 'binary', - 'date' => 'date', - 'date_time' => 'dateTime', - 'password' => 'password', - 'callback' => 'callback' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'integer' => 'setInteger', - 'int32' => 'setInt32', - 'int64' => 'setInt64', - 'number' => 'setNumber', - 'float' => 'setFloat', - 'double' => 'setDouble', - 'string' => 'setString', - 'pattern_without_delimiter' => 'setPatternWithoutDelimiter', - 'byte' => 'setByte', - 'binary' => 'setBinary', - 'date' => 'setDate', - 'date_time' => 'setDateTime', - 'password' => 'setPassword', - 'callback' => 'setCallback' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'integer' => 'getInteger', - 'int32' => 'getInt32', - 'int64' => 'getInt64', - 'number' => 'getNumber', - 'float' => 'getFloat', - 'double' => 'getDouble', - 'string' => 'getString', - 'pattern_without_delimiter' => 'getPatternWithoutDelimiter', - 'byte' => 'getByte', - 'binary' => 'getBinary', - 'date' => 'getDate', - 'date_time' => 'getDateTime', - 'password' => 'getPassword', - 'callback' => 'getCallback' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$swaggerModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['integer'] = isset($data['integer']) ? $data['integer'] : null; - $this->container['int32'] = isset($data['int32']) ? $data['int32'] : null; - $this->container['int64'] = isset($data['int64']) ? $data['int64'] : null; - $this->container['number'] = isset($data['number']) ? $data['number'] : null; - $this->container['float'] = isset($data['float']) ? $data['float'] : null; - $this->container['double'] = isset($data['double']) ? $data['double'] : null; - $this->container['string'] = isset($data['string']) ? $data['string'] : null; - $this->container['pattern_without_delimiter'] = isset($data['pattern_without_delimiter']) ? $data['pattern_without_delimiter'] : null; - $this->container['byte'] = isset($data['byte']) ? $data['byte'] : null; - $this->container['binary'] = isset($data['binary']) ? $data['binary'] : null; - $this->container['date'] = isset($data['date']) ? $data['date'] : null; - $this->container['date_time'] = isset($data['date_time']) ? $data['date_time'] : null; - $this->container['password'] = isset($data['password']) ? $data['password'] : null; - $this->container['callback'] = isset($data['callback']) ? $data['callback'] : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if (!is_null($this->container['integer']) && ($this->container['integer'] > 100)) { - $invalidProperties[] = "invalid value for 'integer', must be smaller than or equal to 100."; - } - - if (!is_null($this->container['integer']) && ($this->container['integer'] < 10)) { - $invalidProperties[] = "invalid value for 'integer', must be bigger than or equal to 10."; - } - - if (!is_null($this->container['int32']) && ($this->container['int32'] > 200)) { - $invalidProperties[] = "invalid value for 'int32', must be smaller than or equal to 200."; - } - - if (!is_null($this->container['int32']) && ($this->container['int32'] < 20)) { - $invalidProperties[] = "invalid value for 'int32', must be bigger than or equal to 20."; - } - - if ($this->container['number'] === null) { - $invalidProperties[] = "'number' can't be null"; - } - if ($this->container['double'] === null) { - $invalidProperties[] = "'double' can't be null"; - } - if ($this->container['pattern_without_delimiter'] === null) { - $invalidProperties[] = "'pattern_without_delimiter' can't be null"; - } - if ($this->container['byte'] === null) { - $invalidProperties[] = "'byte' can't be null"; - } - if (!is_null($this->container['password']) && (mb_strlen($this->container['password']) > 64)) { - $invalidProperties[] = "invalid value for 'password', the character length must be smaller than or equal to 64."; - } - - if (!is_null($this->container['password']) && (mb_strlen($this->container['password']) < 10)) { - $invalidProperties[] = "invalid value for 'password', the character length must be bigger than or equal to 10."; - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['integer'] > 100) { - return false; - } - if ($this->container['integer'] < 10) { - return false; - } - if ($this->container['int32'] > 200) { - return false; - } - if ($this->container['int32'] < 20) { - return false; - } - if ($this->container['number'] === null) { - return false; - } - if ($this->container['double'] === null) { - return false; - } - if ($this->container['pattern_without_delimiter'] === null) { - return false; - } - if ($this->container['byte'] === null) { - return false; - } - if (mb_strlen($this->container['password']) > 64) { - return false; - } - if (mb_strlen($this->container['password']) < 10) { - return false; - } - return true; - } - - - /** - * Gets integer - * - * @return int - */ - public function getInteger() - { - return $this->container['integer']; - } - - /** - * Sets integer - * - * @param int $integer None - * - * @return $this - */ - public function setInteger($integer) - { - - if (!is_null($integer) && ($integer > 100)) { - throw new \InvalidArgumentException('invalid value for $integer when calling Body3., must be smaller than or equal to 100.'); - } - if (!is_null($integer) && ($integer < 10)) { - throw new \InvalidArgumentException('invalid value for $integer when calling Body3., must be bigger than or equal to 10.'); - } - - $this->container['integer'] = $integer; - - return $this; - } - - /** - * Gets int32 - * - * @return int - */ - public function getInt32() - { - return $this->container['int32']; - } - - /** - * Sets int32 - * - * @param int $int32 None - * - * @return $this - */ - public function setInt32($int32) - { - - if (!is_null($int32) && ($int32 > 200)) { - throw new \InvalidArgumentException('invalid value for $int32 when calling Body3., must be smaller than or equal to 200.'); - } - if (!is_null($int32) && ($int32 < 20)) { - throw new \InvalidArgumentException('invalid value for $int32 when calling Body3., must be bigger than or equal to 20.'); - } - - $this->container['int32'] = $int32; - - return $this; - } - - /** - * Gets int64 - * - * @return int - */ - public function getInt64() - { - return $this->container['int64']; - } - - /** - * Sets int64 - * - * @param int $int64 None - * - * @return $this - */ - public function setInt64($int64) - { - $this->container['int64'] = $int64; - - return $this; - } - - /** - * Gets number - * - * @return BigDecimal - */ - public function getNumber() - { - return $this->container['number']; - } - - /** - * Sets number - * - * @param BigDecimal $number None - * - * @return $this - */ - public function setNumber($number) - { - $this->container['number'] = $number; - - return $this; - } - - /** - * Gets float - * - * @return float - */ - public function getFloat() - { - return $this->container['float']; - } - - /** - * Sets float - * - * @param float $float None - * - * @return $this - */ - public function setFloat($float) - { - $this->container['float'] = $float; - - return $this; - } - - /** - * Gets double - * - * @return double - */ - public function getDouble() - { - return $this->container['double']; - } - - /** - * Sets double - * - * @param double $double None - * - * @return $this - */ - public function setDouble($double) - { - $this->container['double'] = $double; - - return $this; - } - - /** - * Gets string - * - * @return string - */ - public function getString() - { - return $this->container['string']; - } - - /** - * Sets string - * - * @param string $string None - * - * @return $this - */ - public function setString($string) - { - $this->container['string'] = $string; - - return $this; - } - - /** - * Gets pattern_without_delimiter - * - * @return string - */ - public function getPatternWithoutDelimiter() - { - return $this->container['pattern_without_delimiter']; - } - - /** - * Sets pattern_without_delimiter - * - * @param string $pattern_without_delimiter None - * - * @return $this - */ - public function setPatternWithoutDelimiter($pattern_without_delimiter) - { - $this->container['pattern_without_delimiter'] = $pattern_without_delimiter; - - return $this; - } - - /** - * Gets byte - * - * @return string - */ - public function getByte() - { - return $this->container['byte']; - } - - /** - * Sets byte - * - * @param string $byte None - * - * @return $this - */ - public function setByte($byte) - { - $this->container['byte'] = $byte; - - return $this; - } - - /** - * Gets binary - * - * @return string - */ - public function getBinary() - { - return $this->container['binary']; - } - - /** - * Sets binary - * - * @param string $binary None - * - * @return $this - */ - public function setBinary($binary) - { - $this->container['binary'] = $binary; - - return $this; - } - - /** - * Gets date - * - * @return \DateTime - */ - public function getDate() - { - return $this->container['date']; - } - - /** - * Sets date - * - * @param \DateTime $date None - * - * @return $this - */ - public function setDate($date) - { - $this->container['date'] = $date; - - return $this; - } - - /** - * Gets date_time - * - * @return \DateTime - */ - public function getDateTime() - { - return $this->container['date_time']; - } - - /** - * Sets date_time - * - * @param \DateTime $date_time None - * - * @return $this - */ - public function setDateTime($date_time) - { - $this->container['date_time'] = $date_time; - - return $this; - } - - /** - * Gets password - * - * @return string - */ - public function getPassword() - { - return $this->container['password']; - } - - /** - * Sets password - * - * @param string $password None - * - * @return $this - */ - public function setPassword($password) - { - if (!is_null($password) && (mb_strlen($password) > 64)) { - throw new \InvalidArgumentException('invalid length for $password when calling Body3., must be smaller than or equal to 64.'); - } - if (!is_null($password) && (mb_strlen($password) < 10)) { - throw new \InvalidArgumentException('invalid length for $password when calling Body3., must be bigger than or equal to 10.'); - } - - $this->container['password'] = $password; - - return $this; - } - - /** - * Gets callback - * - * @return string - */ - public function getCallback() - { - return $this->container['callback']; - } - - /** - * Sets callback - * - * @param string $callback None - * - * @return $this - */ - public function setCallback($callback) - { - $this->container['callback'] = $callback; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Body4.php b/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Body4.php deleted file mode 100644 index 9420b3212a4..00000000000 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/Body4.php +++ /dev/null @@ -1,344 +0,0 @@ - 'string', - 'param2' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'param' => null, - 'param2' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'param' => 'param', - 'param2' => 'param2' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'param' => 'setParam', - 'param2' => 'setParam2' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'param' => 'getParam', - 'param2' => 'getParam2' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$swaggerModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['param'] = isset($data['param']) ? $data['param'] : null; - $this->container['param2'] = isset($data['param2']) ? $data['param2'] : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['param'] === null) { - $invalidProperties[] = "'param' can't be null"; - } - if ($this->container['param2'] === null) { - $invalidProperties[] = "'param2' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['param'] === null) { - return false; - } - if ($this->container['param2'] === null) { - return false; - } - return true; - } - - - /** - * Gets param - * - * @return string - */ - public function getParam() - { - return $this->container['param']; - } - - /** - * Sets param - * - * @param string $param field1 - * - * @return $this - */ - public function setParam($param) - { - $this->container['param'] = $param; - - return $this; - } - - /** - * Gets param2 - * - * @return string - */ - public function getParam2() - { - return $this->container['param2']; - } - - /** - * Sets param2 - * - * @param string $param2 field2 - * - * @return $this - */ - public function setParam2($param2) - { - $this->container['param2'] = $param2; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/OuterBoolean.php b/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/OuterBoolean.php deleted file mode 100644 index 06bd24f8714..00000000000 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/OuterBoolean.php +++ /dev/null @@ -1,277 +0,0 @@ -container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/OuterNumber.php b/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/OuterNumber.php deleted file mode 100644 index 59e9b8f1016..00000000000 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/OuterNumber.php +++ /dev/null @@ -1,277 +0,0 @@ -container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/OuterString.php b/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/OuterString.php deleted file mode 100644 index 0efbc88867e..00000000000 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/OuterString.php +++ /dev/null @@ -1,277 +0,0 @@ -container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/SpecialModelName_.php b/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/SpecialModelName_.php deleted file mode 100644 index 251df319987..00000000000 --- a/samples/openapi3/client/petstore/php/SwaggerClient-php/lib/Model/SpecialModelName_.php +++ /dev/null @@ -1,302 +0,0 @@ - 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'special_property_name' => 'int64' - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'special_property_name' => '$special[property.name]' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'special_property_name' => 'setSpecialPropertyName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'special_property_name' => 'getSpecialPropertyName' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$swaggerModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['special_property_name'] = isset($data['special_property_name']) ? $data['special_property_name'] : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets special_property_name - * - * @return int - */ - public function getSpecialPropertyName() - { - return $this->container['special_property_name']; - } - - /** - * Sets special_property_name - * - * @param int $special_property_name special_property_name - * - * @return $this - */ - public function setSpecialPropertyName($special_property_name) - { - $this->container['special_property_name'] = $special_property_name; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - -