2023-01-02 16:29:05 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Enums;
|
|
|
|
|
|
|
|
use Spatie\Enum\Laravel\Enum;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method static self mal_id()
|
2023-01-28 21:13:57 +00:00
|
|
|
* @method static self name()
|
2023-01-02 16:29:05 +00:00
|
|
|
* @method static self members_count()
|
|
|
|
* @method static self created()
|
|
|
|
*
|
|
|
|
* @OA\Schema(
|
|
|
|
* schema="club_search_query_orderby",
|
|
|
|
* description="Club Search Query OrderBy",
|
|
|
|
* type="string",
|
2023-01-28 21:13:57 +00:00
|
|
|
* enum={"mal_id","name","members_count","created"}
|
2023-01-02 16:29:05 +00:00
|
|
|
* )
|
|
|
|
*/
|
|
|
|
final class ClubOrderByEnum extends Enum
|
|
|
|
{
|
2023-01-28 21:13:57 +00:00
|
|
|
protected static function labels(): array
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
"members_count" => "members"
|
|
|
|
];
|
|
|
|
}
|
2023-01-02 16:29:05 +00:00
|
|
|
}
|