jikan-rest/app/Enums/AnimeTypeEnum.php
2024-01-23 17:42:28 +00:00

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'
];
}
}