jikan-rest/app/Enums/AnimeStatusEnum.php
pushrbx a145f18bbd wip - major refactor
- AppServiceProvider is needs more work to wire in new services
- todo: more dtos
- todo: add unit tests
- todo: add more integration tests
2023-05-21 11:14:34 +01:00

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",
];
}
}