jikan-rest/app/Features/ClubStaffLookupHandler.php
2023-05-21 11:18:02 +01:00

30 lines
665 B
PHP

<?php
namespace App\Features;
use App\Dto\ClubStaffLookupCommand;
use App\Support\CachedData;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Resources\Json\JsonResource;
use Illuminate\Support\Collection;
use App\Http\Resources\V4\ClubStaffResource;
/**
* @extends ItemLookupHandler<ClubStaffLookupCommand, JsonResponse>
*/
final class ClubStaffLookupHandler extends ItemLookupHandler
{
protected function resource(CachedData $results): JsonResource
{
return new ClubStaffResource($results);
}
/**
* @inheritDoc
*/
public function requestClass(): string
{
return ClubStaffLookupCommand::class;
}
}