mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-28 07:06:54 +02:00
46 lines
990 B
PHP
46 lines
990 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Schema\Queries\Models\Pagination\Wiki;
|
|
|
|
use App\GraphQL\Argument\Argument;
|
|
use App\GraphQL\Argument\SearchArgument;
|
|
use App\GraphQL\Schema\Queries\Models\Pagination\EloquentPaginationQuery;
|
|
use App\GraphQL\Schema\Types\Wiki\StudioType;
|
|
|
|
class StudioPaginationQuery extends EloquentPaginationQuery
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct('studioPagination');
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'Returns a listing of studio resources given fields.';
|
|
}
|
|
|
|
/**
|
|
* The base return type of the query.
|
|
*/
|
|
public function baseType(): StudioType
|
|
{
|
|
return new StudioType();
|
|
}
|
|
|
|
/**
|
|
* The arguments of the class resolve as customs class helper.
|
|
*
|
|
* @return Argument[]
|
|
*/
|
|
public function arguments(): array
|
|
{
|
|
return [
|
|
...parent::arguments(),
|
|
|
|
new SearchArgument(),
|
|
];
|
|
}
|
|
}
|