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
568 B
PHP
29 lines
568 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Spatie\Enum\Laravel\Enum;
|
|
|
|
/**
|
|
* @method static self mal_id()
|
|
* @method static self name()
|
|
* @method static self birthday()
|
|
* @method static self favorites()
|
|
*
|
|
* @OA\Schema(
|
|
* schema="people_search_query_orderby",
|
|
* description="Available People order_by properties",
|
|
* type="string",
|
|
* enum={"mal_id", "name", "birthday", "favorites"}
|
|
* )
|
|
*/
|
|
final class PeopleOrderByEnum extends Enum
|
|
{
|
|
protected static function labels()
|
|
{
|
|
return [
|
|
"favorites" => "member_favorites"
|
|
];
|
|
}
|
|
}
|