mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
36 lines
1.1 KiB
PHP
36 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Dto;
|
|
|
|
use App\Casts\EnumCast;
|
|
use App\Concerns\HasRequestFingerprint;
|
|
use App\Contracts\DataRequest;
|
|
use App\Dto\Concerns\HasKidsParameter;
|
|
use App\Dto\Concerns\HasLimitParameter;
|
|
use App\Dto\Concerns\HasPageParameter;
|
|
use App\Dto\Concerns\HasSfwParameter;
|
|
use App\Dto\Concerns\HasUnapprovedParameter;
|
|
use App\Dto\Concerns\MapsRouteParameters;
|
|
use App\Dto\Concerns\PreparesData;
|
|
use App\Enums\AnimeScheduleFilterEnum;
|
|
use App\Rules\Attributes\EnumValidation;
|
|
use Illuminate\Http\JsonResponse;
|
|
use Spatie\LaravelData\Attributes\WithCast;
|
|
use Spatie\LaravelData\Data;
|
|
use Spatie\LaravelData\Attributes\MapOutputName;
|
|
|
|
/**
|
|
* @implements DataRequest<JsonResponse>
|
|
*/
|
|
final class QueryAnimeSchedulesCommand extends Data implements DataRequest
|
|
{
|
|
use HasLimitParameter, HasRequestFingerprint, HasPageParameter, PreparesData, HasSfwParameter, HasKidsParameter, HasUnapprovedParameter, MapsRouteParameters;
|
|
|
|
#[
|
|
WithCast(EnumCast::class, AnimeScheduleFilterEnum::class),
|
|
EnumValidation(AnimeScheduleFilterEnum::class),
|
|
MapOutputName("filter")
|
|
]
|
|
public ?AnimeScheduleFilterEnum $dayFilter;
|
|
}
|