Skip to content

Commit

Permalink
fix: declare property headerSelector (#7495)
Browse files Browse the repository at this point in the history
The property was created dynamically, it's a more clean approach to
declare it as a member of the class.
  • Loading branch information
jmglsn authored and wing328 committed Jan 25, 2018
1 parent 2394fac commit 76907ca
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 5 deletions.
5 changes: 5 additions & 0 deletions modules/swagger-codegen/src/main/resources/php/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ use {{invokerPackage}}\ObjectSerializer;
*/
protected $config;
/**
* @var HeaderSelector
*/
protected $headerSelector;
/**
* @param ClientInterface $client
* @param Configuration $config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ class FakeApi
*/
protected $config;

/**
* @var HeaderSelector
*/
protected $headerSelector;

/**
* @param ClientInterface $client
* @param Configuration $config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,11 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**enum_form_string_array** | **string[]**| Form parameter enum test (string array) | [optional]
**enum_form_string_array** | [**string[]**](../Model/string.md)| Form parameter enum test (string array) | [optional]
**enum_form_string** | **string**| Form parameter enum test (string) | [optional] [default to -efg]
**enum_header_string_array** | **string[]**| Header parameter enum test (string array) | [optional]
**enum_header_string_array** | [**string[]**](../Model/string.md)| Header parameter enum test (string array) | [optional]
**enum_header_string** | **string**| Header parameter enum test (string) | [optional] [default to -efg]
**enum_query_string_array** | **string[]**| Query parameter enum test (string array) | [optional]
**enum_query_string_array** | [**string[]**](../Model/string.md)| Query parameter enum test (string array) | [optional]
**enum_query_string** | **string**| Query parameter enum test (string) | [optional] [default to -efg]
**enum_query_integer** | **int**| Query parameter enum test (double) | [optional]
**enum_query_double** | **double**| Query parameter enum test (double) | [optional]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**status** | **string[]**| Status values that need to be considered for filter |
**status** | [**string[]**](../Model/string.md)| Status values that need to be considered for filter |

### Return type

Expand Down Expand Up @@ -209,7 +209,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**tags** | **string[]**| Tags to filter by |
**tags** | [**string[]**](../Model/string.md)| Tags to filter by |

### Return type

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ class AnotherFakeApi
*/
protected $config;

/**
* @var HeaderSelector
*/
protected $headerSelector;

/**
* @param ClientInterface $client
* @param Configuration $config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ class FakeApi
*/
protected $config;

/**
* @var HeaderSelector
*/
protected $headerSelector;

/**
* @param ClientInterface $client
* @param Configuration $config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ class FakeClassnameTags123Api
*/
protected $config;

/**
* @var HeaderSelector
*/
protected $headerSelector;

/**
* @param ClientInterface $client
* @param Configuration $config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ class PetApi
*/
protected $config;

/**
* @var HeaderSelector
*/
protected $headerSelector;

/**
* @param ClientInterface $client
* @param Configuration $config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ class StoreApi
*/
protected $config;

/**
* @var HeaderSelector
*/
protected $headerSelector;

/**
* @param ClientInterface $client
* @param Configuration $config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ class UserApi
*/
protected $config;

/**
* @var HeaderSelector
*/
protected $headerSelector;

/**
* @param ClientInterface $client
* @param Configuration $config
Expand Down

0 comments on commit 76907ca

Please sign in to comment.