mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
22 lines
571 B
PHP
22 lines
571 B
PHP
<?php
|
|
|
|
namespace App\Dto;
|
|
|
|
|
|
use App\Casts\EnumCast;
|
|
use App\Enums\UserHistoryTypeEnum;
|
|
use App\Rules\Attributes\EnumValidation;
|
|
use Illuminate\Http\JsonResponse;
|
|
use Spatie\Enum\Laravel\Rules\EnumRule;
|
|
use Spatie\LaravelData\Attributes\Validation\Nullable;
|
|
use Spatie\LaravelData\Attributes\WithCast;
|
|
|
|
/**
|
|
* @extends LookupDataCommand<JsonResponse>
|
|
*/
|
|
final class UserHistoryLookupCommand extends LookupByUsernameCommand
|
|
{
|
|
#[WithCast(EnumCast::class, UserHistoryTypeEnum::class), EnumValidation(UserHistoryTypeEnum::class)]
|
|
public ?UserHistoryTypeEnum $type;
|
|
}
|