mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
38 lines
975 B
PHP
38 lines
975 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Enums;
|
||
|
|
||
|
use Spatie\Enum\Laravel\Enum;
|
||
|
|
||
|
/**
|
||
|
* @method static self mal_id()
|
||
|
* @method static self title()
|
||
|
* @method static self start_date()
|
||
|
* @method static self end_date()
|
||
|
* @method static self chapters()
|
||
|
* @method static self volumes()
|
||
|
* @method static self score()
|
||
|
* @method static self scored_by()
|
||
|
* @method static self rank()
|
||
|
* @method static self popularity()
|
||
|
* @method static self members()
|
||
|
* @method static self favorites()
|
||
|
*
|
||
|
* @OA\Schema(
|
||
|
* schema="manga_search_query_orderby",
|
||
|
* description="Available Manga order_by properties",
|
||
|
* type="string",
|
||
|
* enum={"mal_id", "title", "start_date", "end_date", "chapters", "volumes", "score", "scored_by", "rank", "popularity", "members", "favorites"}
|
||
|
* )
|
||
|
*/
|
||
|
final class MangaOrderByEnum extends Enum
|
||
|
{
|
||
|
protected static function labels(): array
|
||
|
{
|
||
|
return [
|
||
|
'start_date' => 'published.from',
|
||
|
'end_date' => 'published.to'
|
||
|
];
|
||
|
}
|
||
|
}
|