mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
- AppServiceProvider is needs more work to wire in new services - todo: more dtos - todo: add unit tests - todo: add more integration tests
29 lines
602 B
PHP
29 lines
602 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
use Spatie\Enum\Laravel\Enum;
|
|
|
|
/**
|
|
* @method static self airing()
|
|
* @method static self complete()
|
|
* @method static self upcoming()
|
|
*
|
|
* @OA\Schema(
|
|
* schema="anime_search_query_status",
|
|
* description="Available Anime statuses",
|
|
* type="string",
|
|
* enum={"airing","complete","upcoming"}
|
|
* )
|
|
*/
|
|
final class AnimeStatusEnum extends Enum
|
|
{
|
|
protected static function labels(): array
|
|
{
|
|
return [
|
|
"airing" => "Currently Airing",
|
|
"complete" => "Finished Airing",
|
|
"upcoming" => "Not yet aired",
|
|
];
|
|
}
|
|
}
|