jikan-rest/app/Enums/MangaOrderByEnum.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

38 lines
975 B
PHP

<?php
namespace App\Enums;
use Spatie\Enum\Laravel\Enum;
/**
* @method static self mal_id()
* @method static self title()
* @method static self start_date()
* @method static self end_date()
* @method static self chapters()
* @method static self volumes()
* @method static self score()
* @method static self scored_by()
* @method static self rank()
* @method static self popularity()
* @method static self members()
* @method static self favorites()
*
* @OA\Schema(
* schema="manga_search_query_orderby",
* description="Available Manga order_by properties",
* type="string",
* enum={"mal_id", "title", "start_date", "end_date", "chapters", "volumes", "score", "scored_by", "rank", "popularity", "members", "favorites"}
* )
*/
final class MangaOrderByEnum extends Enum
{
protected static function labels(): array
{
return [
'start_date' => 'published.from',
'end_date' => 'published.to'
];
}
}