mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
38 lines
876 B
PHP
38 lines
876 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Spatie\Enum\Laravel\Enum;
|
|
|
|
/**
|
|
* @method static self manga()
|
|
* @method static self novel()
|
|
* @method static self lightnovel()
|
|
* @method static self oneshot()
|
|
* @method static self doujin()
|
|
* @method static self manhwa()
|
|
* @method static self manhua()
|
|
*
|
|
* @OA\Schema(
|
|
* schema="manga_search_query_type",
|
|
* description="Available Manga types",
|
|
* type="string",
|
|
* enum={"manga","novel", "lightnovel", "oneshot","doujin","manhwa","manhua"}
|
|
* )
|
|
*/
|
|
final class MangaTypeEnum extends Enum
|
|
{
|
|
protected static function labels(): array
|
|
{
|
|
return [
|
|
'manga' => 'Manga',
|
|
'novel' => 'Novel',
|
|
'lightnovel' => 'Light Novel',
|
|
'oneshot' => 'One-shot',
|
|
'doujin' => 'Doujinshi',
|
|
'manhwa' => 'Manhwa',
|
|
'manhua' => 'Manhua'
|
|
];
|
|
}
|
|
}
|