mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
42 lines
947 B
PHP
42 lines
947 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Spatie\Enum\Laravel\Enum;
|
|
|
|
/**
|
|
* @method static self tv()
|
|
* @method static self movie()
|
|
* @method static self ova()
|
|
* @method static self special()
|
|
* @method static self ona()
|
|
* @method static self music()
|
|
* @method static self cm()
|
|
* @method static self pv()
|
|
* @method static self tv_special()
|
|
*
|
|
* @OA\Schema(
|
|
* schema="anime_search_query_type",
|
|
* description="Available Anime types",
|
|
* type="string",
|
|
* enum={"tv","movie","ova","special","ona","music","cm","pv","tv_special"}
|
|
* )
|
|
*/
|
|
final class AnimeTypeEnum extends Enum
|
|
{
|
|
protected static function labels(): array
|
|
{
|
|
return [
|
|
'tv' => 'TV',
|
|
'movie' => 'Movie',
|
|
'ova' => 'OVA',
|
|
'special' => 'Special',
|
|
'ona' => 'ONA',
|
|
'music' => 'Music',
|
|
'cm' => 'CM',
|
|
'pv' => 'PV',
|
|
'tv_special' => 'TV Special'
|
|
];
|
|
}
|
|
}
|