[PHP] Regenerate petstore sample

This commit is contained in:
Arne Jørgensen
2016-06-13 23:22:31 +02:00
parent f5f4adac29
commit 614e98a404
12 changed files with 185 additions and 48 deletions

View File

@@ -289,6 +289,7 @@ class FakeApi
$httpBody,
$headerParams
);
return array(null, $statusCode, $httpHeader);
} catch (ApiException $e) {
switch ($e->getCode()) {

View File

@@ -182,6 +182,7 @@ class PetApi
$httpBody,
$headerParams
);
return array(null, $statusCode, $httpHeader);
} catch (ApiException $e) {
switch ($e->getCode()) {
@@ -278,6 +279,7 @@ class PetApi
$httpBody,
$headerParams
);
return array(null, $statusCode, $httpHeader);
} catch (ApiException $e) {
switch ($e->getCode()) {
@@ -369,9 +371,6 @@ class PetApi
$headerParams,
'\Swagger\Client\Model\Pet[]'
);
if (!$response) {
return array(null, $statusCode, $httpHeader);
}
return array($this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\Pet[]', $httpHeader), $statusCode, $httpHeader);
} catch (ApiException $e) {
@@ -468,9 +467,6 @@ class PetApi
$headerParams,
'\Swagger\Client\Model\Pet[]'
);
if (!$response) {
return array(null, $statusCode, $httpHeader);
}
return array($this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\Pet[]', $httpHeader), $statusCode, $httpHeader);
} catch (ApiException $e) {
@@ -570,9 +566,6 @@ class PetApi
$headerParams,
'\Swagger\Client\Model\Pet'
);
if (!$response) {
return array(null, $statusCode, $httpHeader);
}
return array($this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\Pet', $httpHeader), $statusCode, $httpHeader);
} catch (ApiException $e) {
@@ -666,6 +659,7 @@ class PetApi
$httpBody,
$headerParams
);
return array(null, $statusCode, $httpHeader);
} catch (ApiException $e) {
switch ($e->getCode()) {
@@ -767,6 +761,7 @@ class PetApi
$httpBody,
$headerParams
);
return array(null, $statusCode, $httpHeader);
} catch (ApiException $e) {
switch ($e->getCode()) {
@@ -875,9 +870,6 @@ class PetApi
$headerParams,
'\Swagger\Client\Model\ApiResponse'
);
if (!$response) {
return array(null, $statusCode, $httpHeader);
}
return array($this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\ApiResponse', $httpHeader), $statusCode, $httpHeader);
} catch (ApiException $e) {

View File

@@ -184,6 +184,7 @@ class StoreApi
$httpBody,
$headerParams
);
return array(null, $statusCode, $httpHeader);
} catch (ApiException $e) {
switch ($e->getCode()) {
@@ -264,9 +265,6 @@ class StoreApi
$headerParams,
'map[string,int]'
);
if (!$response) {
return array(null, $statusCode, $httpHeader);
}
return array($this->apiClient->getSerializer()->deserialize($response, 'map[string,int]', $httpHeader), $statusCode, $httpHeader);
} catch (ApiException $e) {
@@ -366,9 +364,6 @@ class StoreApi
$headerParams,
'\Swagger\Client\Model\Order'
);
if (!$response) {
return array(null, $statusCode, $httpHeader);
}
return array($this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\Order', $httpHeader), $statusCode, $httpHeader);
} catch (ApiException $e) {
@@ -458,9 +453,6 @@ class StoreApi
$headerParams,
'\Swagger\Client\Model\Order'
);
if (!$response) {
return array(null, $statusCode, $httpHeader);
}
return array($this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\Order', $httpHeader), $statusCode, $httpHeader);
} catch (ApiException $e) {

View File

@@ -177,6 +177,7 @@ class UserApi
$httpBody,
$headerParams
);
return array(null, $statusCode, $httpHeader);
} catch (ApiException $e) {
switch ($e->getCode()) {
@@ -260,6 +261,7 @@ class UserApi
$httpBody,
$headerParams
);
return array(null, $statusCode, $httpHeader);
} catch (ApiException $e) {
switch ($e->getCode()) {
@@ -343,6 +345,7 @@ class UserApi
$httpBody,
$headerParams
);
return array(null, $statusCode, $httpHeader);
} catch (ApiException $e) {
switch ($e->getCode()) {
@@ -429,6 +432,7 @@ class UserApi
$httpBody,
$headerParams
);
return array(null, $statusCode, $httpHeader);
} catch (ApiException $e) {
switch ($e->getCode()) {
@@ -516,9 +520,6 @@ class UserApi
$headerParams,
'\Swagger\Client\Model\User'
);
if (!$response) {
return array(null, $statusCode, $httpHeader);
}
return array($this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\User', $httpHeader), $statusCode, $httpHeader);
} catch (ApiException $e) {
@@ -617,9 +618,6 @@ class UserApi
$headerParams,
'string'
);
if (!$response) {
return array(null, $statusCode, $httpHeader);
}
return array($this->apiClient->getSerializer()->deserialize($response, 'string', $httpHeader), $statusCode, $httpHeader);
} catch (ApiException $e) {
@@ -697,6 +695,7 @@ class UserApi
$httpBody,
$headerParams
);
return array(null, $statusCode, $httpHeader);
} catch (ApiException $e) {
switch ($e->getCode()) {
@@ -794,6 +793,7 @@ class UserApi
$httpBody,
$headerParams
);
return array(null, $statusCode, $httpHeader);
} catch (ApiException $e) {
switch ($e->getCode()) {