Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
*
* @return string[]
*/
public function {{getter}}AllowableValues()
public static function {{getter}}AllowableValues()
{
return [
{{#discriminator}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public function getModelName(): string
*
* @return string[]
*/
public function getArrayStringEnumDefaultAllowableValues()
public static function getArrayStringEnumDefaultAllowableValues()
{
return [
self::ARRAY_STRING_ENUM_DEFAULT_SUCCESS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public function getModelName(): string
*
* @return string[]
*/
public function getStatusAllowableValues()
public static function getStatusAllowableValues()
{
return [
self::STATUS_AVAILABLE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public function getModelName(): string
*
* @return string[]
*/
public function getOutcomesAllowableValues()
public static function getOutcomesAllowableValues()
{
return [
self::OUTCOMES_SUCCESS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public function getModelName(): string
*
* @return string[]
*/
public function getArrayStringEnumDefaultAllowableValues()
public static function getArrayStringEnumDefaultAllowableValues()
{
return [
self::ARRAY_STRING_ENUM_DEFAULT_SUCCESS,
Expand Down
2 changes: 1 addition & 1 deletion samples/client/echo_api/php-nextgen/src/Model/Pet.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public function getModelName(): string
*
* @return string[]
*/
public function getStatusAllowableValues()
public static function getStatusAllowableValues()
{
return [
self::STATUS_AVAILABLE,
Expand Down
2 changes: 1 addition & 1 deletion samples/client/echo_api/php-nextgen/src/Model/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public function getModelName(): string
*
* @return string[]
*/
public function getOutcomesAllowableValues()
public static function getOutcomesAllowableValues()
{
return [
self::OUTCOMES_SUCCESS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public function getModelName(): string
*
* @return string[]
*/
public function getJustSymbolAllowableValues()
public static function getJustSymbolAllowableValues()
{
return [
self::JUST_SYMBOL_GREATER_THAN_OR_EQUAL_TO,
Expand All @@ -256,7 +256,7 @@ public function getJustSymbolAllowableValues()
*
* @return string[]
*/
public function getArrayEnumAllowableValues()
public static function getArrayEnumAllowableValues()
{
return [
self::ARRAY_ENUM_FISH,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public function getModelName(): string
*
* @return string[]
*/
public function getEnumStringAllowableValues()
public static function getEnumStringAllowableValues()
{
return [
self::ENUM_STRING_UPPER,
Expand All @@ -299,7 +299,7 @@ public function getEnumStringAllowableValues()
*
* @return string[]
*/
public function getEnumStringRequiredAllowableValues()
public static function getEnumStringRequiredAllowableValues()
{
return [
self::ENUM_STRING_REQUIRED_UPPER,
Expand All @@ -313,7 +313,7 @@ public function getEnumStringRequiredAllowableValues()
*
* @return string[]
*/
public function getEnumIntegerAllowableValues()
public static function getEnumIntegerAllowableValues()
{
return [
self::ENUM_INTEGER_NUMBER_1,
Expand All @@ -326,7 +326,7 @@ public function getEnumIntegerAllowableValues()
*
* @return string[]
*/
public function getEnumNumberAllowableValues()
public static function getEnumNumberAllowableValues()
{
return [
self::ENUM_NUMBER_NUMBER_1_DOT_1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public function getModelName(): string
*
* @return string[]
*/
public function getMapOfEnumStringAllowableValues()
public static function getMapOfEnumStringAllowableValues()
{
return [
self::MAP_OF_ENUM_STRING_UPPER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public function getModelName(): string
*
* @return string[]
*/
public function getStatusAllowableValues()
public static function getStatusAllowableValues()
{
return [
self::STATUS_PLACED,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public function getModelName(): string
*
* @return string[]
*/
public function getTypeAllowableValues()
public static function getTypeAllowableValues()
{
return [
self::TYPE_CHILD_WITH_NULLABLE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public function getModelName(): string
*
* @return string[]
*/
public function getStatusAllowableValues()
public static function getStatusAllowableValues()
{
return [
self::STATUS_AVAILABLE,
Expand Down
Loading