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
34 lines
782 B
PHP
34 lines
782 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Spatie\Enum\Laravel\Enum;
|
|
|
|
/**
|
|
* @method static self publishing()
|
|
* @method static self complete()
|
|
* @method static self hiatus()
|
|
* @method static self discontinued()
|
|
* @method static self upcoming()
|
|
*
|
|
* @OA\Schema(
|
|
* schema="manga_search_query_status",
|
|
* description="Available Manga statuses",
|
|
* type="string",
|
|
* enum={"publishing","complete","hiatus","discontinued","upcoming"}
|
|
* )
|
|
*/
|
|
final class MangaStatusEnum extends Enum
|
|
{
|
|
protected static function labels(): array
|
|
{
|
|
return [
|
|
"publishing" => "Publishing",
|
|
"complete" => "Finished",
|
|
"hiatus" => "On Hiatus",
|
|
"discontinued" => "Discontinued",
|
|
"upcoming" => "Not yet published"
|
|
];
|
|
}
|
|
}
|