jikan-rest/app/Services/QueryBuilderPaginatorService.php
pushrbx a145f18bbd wip - major refactor
- AppServiceProvider is needs more work to wire in new services
- todo: more dtos
- todo: add unit tests
- todo: add more integration tests
2023-05-21 11:14:34 +01:00

14 lines
393 B
PHP

<?php
namespace App\Services;
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
/**
* Represents a service which knows how to paginate the Scout/Eloquent database query builders.
*/
interface QueryBuilderPaginatorService
{
function paginate(\Laravel\Scout\Builder|\Illuminate\Database\Eloquent\Builder $builder, ?int $limit = null, ?int $page = null): LengthAwarePaginator;
}