renaud-twd efdc94b113
Fix enum generation for php-symfony generator (#14105)
* fix(symfony): enum generation

* docs(php symfony): update samples and docs
2022-12-27 23:42:41 +08:00

69 lines
1.4 KiB
PHP

<?php
/**
* EnumStringModel
*
* PHP version 8.1.1
*
* @category Class
* @package OpenAPI\Server\Model
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* OpenAPI Petstore
*
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Do not edit the class manually.
*/
namespace OpenAPI\Server\Model;
use Symfony\Component\Validator\Constraints as Assert;
use JMS\Serializer\Annotation\Type;
use JMS\Serializer\Annotation\SerializedName;
/**
* Class representing the EnumStringModel model.
*
* enum model
*
* @package OpenAPI\Server\Model
* @author OpenAPI Generator team
*/
class EnumStringModel
{
/**
* Possible values of this enum
*/
const AVAILABLE = "available";
const PENDING = "pending";
const SOLD = "sold";
/**
* Gets allowable values of the enum
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::AVAILABLE,
self::PENDING,
self::SOLD,
];
}
}