mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
31 lines
601 B
PHP
31 lines
601 B
PHP
<?php
|
|
|
|
namespace App\Features;
|
|
|
|
use App\Dto\ClubSearchCommand;
|
|
use App\Http\Resources\V4\ClubCollection;
|
|
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
|
|
|
|
/**
|
|
* @extends SearchRequestHandler<ClubSearchCommand, ClubCollection>
|
|
*/
|
|
final class ClubSearchHandler extends SearchRequestHandler
|
|
{
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function requestClass(): string
|
|
{
|
|
return ClubSearchCommand::class;
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
protected function renderResponse(LengthAwarePaginator $paginator)
|
|
{
|
|
return new ClubCollection($paginator);
|
|
}
|
|
}
|