Bump and regenerate PHP sample

This commit is contained in:
Daniel Ge
2016-07-06 12:03:10 -07:00
parent d213dcd418
commit 20448dd9e3
13 changed files with 76 additions and 182 deletions

View File

@@ -11,12 +11,12 @@
*/
/**
* Swagger Petstore *_/ ' \" =end
* Swagger Petstore */ ' " =end
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ */ ' \" =end
*
* OpenAPI spec version: 1.0.0 *_/ ' \" =end
* Contact: apiteam@swagger.io *_/ ' \" =end
* OpenAPI spec version: 1.0.0 */ ' " =end
* Contact: apiteam@swagger.io */ ' " =end
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -73,7 +73,7 @@ class FakeApi
{
if ($apiClient == null) {
$apiClient = new ApiClient();
$apiClient->getConfig()->setHost('https://petstore.swagger.io *_/ ' \" =end/v2 *_/ ' \" =end');
$apiClient->getConfig()->setHost('https://petstore.swagger.io */ ' " =end/v2 */ ' " =end');
}
$this->apiClient = $apiClient;
@@ -105,9 +105,9 @@ class FakeApi
/**
* Operation testCodeInjectEnd
*
* To test code injection *_/ ' \" =end
* To test code injection */ ' \" =end
*
* @param string $test_code_inject____end To test code injection *_/ ' \" =end (optional)
* @param string $test_code_inject____end To test code injection */ ' \" =end (optional)
* @return void
* @throws \Swagger\Client\ApiException on non-2xx response
*/
@@ -120,9 +120,9 @@ class FakeApi
/**
* Operation testCodeInjectEndWithHttpInfo
*
* To test code injection *_/ ' \" =end
* To test code injection */ ' \" =end
*
* @param string $test_code_inject____end To test code injection *_/ ' \" =end (optional)
* @param string $test_code_inject____end To test code injection */ ' \" =end (optional)
* @return Array of null, HTTP status code, HTTP response headers (array of strings)
* @throws \Swagger\Client\ApiException on non-2xx response
*/
@@ -134,11 +134,11 @@ class FakeApi
$queryParams = array();
$headerParams = array();
$formParams = array();
$_header_accept = $this->apiClient->selectHeaderAccept(array('application/json', '*/ " =end'));
$_header_accept = $this->apiClient->selectHeaderAccept(array('application/json', '*/ ' " =end'));
if (!is_null($_header_accept)) {
$headerParams['Accept'] = $_header_accept;
}
$headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(array('application/json','*/ " =end'));
$headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(array('application/json','*/ ' " =end'));
// default format to json
$resourcePath = str_replace("{format}", "json", $resourcePath);

View File

@@ -12,12 +12,12 @@
*/
/**
* Swagger Petstore *_/ ' \" =end
* Swagger Petstore */ ' " =end
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ */ ' \" =end
*
* OpenAPI spec version: 1.0.0 *_/ ' \" =end
* Contact: apiteam@swagger.io *_/ ' \" =end
* OpenAPI spec version: 1.0.0 */ ' " =end
* Contact: apiteam@swagger.io */ ' " =end
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Licensed under the Apache License, Version 2.0 (the "License");

View File

@@ -11,12 +11,12 @@
*/
/**
* Swagger Petstore *_/ ' \" =end
* Swagger Petstore */ ' " =end
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ */ ' \" =end
*
* OpenAPI spec version: 1.0.0 *_/ ' \" =end
* Contact: apiteam@swagger.io *_/ ' \" =end
* OpenAPI spec version: 1.0.0 */ ' " =end
* Contact: apiteam@swagger.io */ ' " =end
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Licensed under the Apache License, Version 2.0 (the "License");

View File

@@ -11,12 +11,12 @@
*/
/**
* Swagger Petstore *_/ ' \" =end
* Swagger Petstore */ ' " =end
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ */ ' \" =end
*
* OpenAPI spec version: 1.0.0 *_/ ' \" =end
* Contact: apiteam@swagger.io *_/ ' \" =end
* OpenAPI spec version: 1.0.0 */ ' " =end
* Contact: apiteam@swagger.io */ ' " =end
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -102,7 +102,7 @@ class Configuration
*
* @var string
*/
protected $host = 'https://petstore.swagger.io *_/ ' \" =end/v2 *_/ ' \" =end';
protected $host = 'https://petstore.swagger.io */ ' " =end/v2 */ ' " =end';
/**
* Timeout (second) of the HTTP request, by default set to 0, no timeout
@@ -522,7 +522,7 @@ class Configuration
$report = 'PHP SDK (Swagger\Client) Debug Report:' . PHP_EOL;
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . phpversion() . PHP_EOL;
$report .= ' OpenAPI Spec Version: 1.0.0 *_/ ' \" =end' . PHP_EOL;
$report .= ' OpenAPI Spec Version: 1.0.0 */ ' " =end' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
return $report;

View File

@@ -12,12 +12,12 @@
*/
/**
* Swagger Petstore *_/ ' \" =end
* Swagger Petstore */ ' " =end
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ */ ' \" =end
*
* OpenAPI spec version: 1.0.0 *_/ ' \" =end
* Contact: apiteam@swagger.io *_/ ' \" =end
* OpenAPI spec version: 1.0.0 */ ' " =end
* Contact: apiteam@swagger.io */ ' " =end
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -47,7 +47,7 @@ use \ArrayAccess;
* ModelReturn Class Doc Comment
*
* @category Class */
// @description Model for testing reserved words *_/ ' \" =end
// @description Model for testing reserved words */ ' \" =end
/**
* @package Swagger\Client
* @author http://github.com/swagger-api/swagger-codegen
@@ -167,7 +167,7 @@ class ModelReturn implements ArrayAccess
/**
* Sets return
* @param int $return property description *_/ ' \" =end
* @param int $return property description */ ' \" =end
* @return $this
*/
public function setReturn($return)

View File

@@ -12,12 +12,12 @@
*/
/**
* Swagger Petstore *_/ ' \" =end
* Swagger Petstore */ ' " =end
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ */ ' \" =end
*
* OpenAPI spec version: 1.0.0 *_/ ' \" =end
* Contact: apiteam@swagger.io *_/ ' \" =end
* OpenAPI spec version: 1.0.0 */ ' " =end
* Contact: apiteam@swagger.io */ ' " =end
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -264,7 +264,7 @@ class ObjectSerializer
} else {
return null;
}
} elseif (in_array($class, array('integer', 'int', 'void', 'number', 'object', 'double', 'float', 'byte', 'DateTime', 'string', 'mixed', 'boolean', 'bool'))) {
} elseif (in_array($class, array('void', 'bool', 'string', 'double', 'byte', 'mixed', 'integer', 'float', 'int', 'DateTime', 'number', 'boolean', 'object'))) {
settype($data, $class);
return $data;
} elseif ($class === '\SplFileObject') {